Skip to content

Commit b5e5204

Browse files
committed
Fix review comments on amdgpu target specification
1 parent f737662 commit b5e5204

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,15 @@ pub(crate) fn target() -> Target {
3131

3232
// amdgpu backend does not support libcalls.
3333
no_builtins: true,
34+
simd_types_indirect: false,
3435

35-
// Needed to use `cdylib` crate type.
36+
// Allow `cdylib` crate type.
3637
dynamic_linking: true,
38+
only_cdylib: true,
39+
executables: false,
40+
41+
// The LLVM backend does not support stack canaries for this target
42+
supports_stack_protector: false,
3743

3844
..Default::default()
3945
},

0 commit comments

Comments
 (0)