Skip to content

Commit af42d2a

Browse files
author
Kjetil Kjeka
committed
NVPTX: Enable self-contained for the nvptx target
1 parent 222ce4f commit af42d2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_target/src/spec/targets/nvptx64_nvidia_cuda.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use crate::spec::LinkSelfContainedDefault;
12
use crate::spec::{LinkerFlavor, MergeFunctions, PanicStrategy, Target, TargetOptions};
23

34
pub fn target() -> Target {
@@ -47,6 +48,9 @@ pub fn target() -> Target {
4748
// The LLVM backend does not support stack canaries for this target
4849
supports_stack_protector: false,
4950

51+
// Support using `self-contained` linkers like the llvm-bitcode-linker
52+
link_self_contained: LinkSelfContainedDefault::True,
53+
5054
..Default::default()
5155
},
5256
}

0 commit comments

Comments
 (0)