We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a932eb3 commit 3c42dc2Copy full SHA for 3c42dc2
tests/run-make/amdgpu-kd/rmake.rs
@@ -6,13 +6,19 @@
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
14
+ // STATUS_HEAP_CORRUPTION (0xc0000374).
15
+ // To try to mitigate this we pass --threads=1 to the linker.
16
+ let extra_args: &[&str] = if is_windows_gnu() { &["-C", "link-arg=--threads=1"] } else { &[] };
17
rustc()
18
.crate_name("foo")
19
.target("amdgcn-amd-amdhsa")
20
.arg("-Ctarget-cpu=gfx900")
21
+ .args(&extra_args)
22
.crate_type("cdylib")
23
.input("foo.rs")
24
.run();
0 commit comments