We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a932eb3 commit b107e98Copy full SHA for b107e98
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
+ // 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
+ // See #115985.
16
+ let extra_args = 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