We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a932eb3 commit cb615c0Copy full SHA for cb615c0
tests/run-make/amdgpu-kd/rmake.rs
@@ -6,13 +6,18 @@
6
//@ needs-llvm-components: amdgpu
7
//@ needs-rust-lld
8
9
+use run_make_support::targets::is_windows_gnu;
10
use run_make_support::{llvm_readobj, rustc};
11
12
fn main() {
13
+ // FIXME(#115985): rust-lld on gnu targets may spuriously fail with STATUS_HEAP_CORRUPTION (0xc0000374)
14
+ // To try to mitigate this we pass --threads=1 to the linker.
15
+ let extra_args = if is_windows_gnu() { ["-C", "link-arg=--threads=1"] } else { [] };
16
rustc()
17
.crate_name("foo")
18
.target("amdgcn-amd-amdhsa")
19
.arg("-Ctarget-cpu=gfx900")
20
+ .args(&extra_args)
21
.crate_type("cdylib")
22
.input("foo.rs")
23
.run();
0 commit comments