Skip to content

Commit 1987116

Browse files
author
Kjetil Kjeka
committed
NVPTX: Use the embedded linker as default linker
1 parent 12608a5 commit 1987116

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

compiler/rustc_target/src/spec/nvptx64_nvidia_cuda.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ pub fn target() -> Target {
1010
options: TargetOptions {
1111
os: "cuda".into(),
1212
vendor: "nvidia".into(),
13-
linker_flavor: LinkerFlavor::Ptx,
14-
// The linker can be installed from `crates.io`.
15-
linker: Some("rust-ptx-linker".into()),
13+
linker_flavor: LinkerFlavor::Embedded,
14+
linker: Some("rust-embedded-linker".into()),
1615

1716
// With `ptx-linker` approach, it can be later overridden via link flags.
1817
cpu: "sm_30".into(),

compiler/rustc_target/src/spec/tests/tests_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl Target {
2828
);
2929
assert_eq!(self.os == "emscripten", matches!(self.linker_flavor, LinkerFlavor::EmCc));
3030
assert_eq!(self.arch == "bpf", matches!(self.linker_flavor, LinkerFlavor::Bpf));
31-
assert_eq!(self.arch == "nvptx64", matches!(self.linker_flavor, LinkerFlavor::Ptx));
31+
assert_eq!(self.arch == "nvptx64", matches!(self.linker_flavor, LinkerFlavor::Embedded));
3232

3333
for args in [
3434
&self.pre_link_args,

0 commit comments

Comments
 (0)