Commit e2d58c1 1 parent 61deab3 commit e2d58c1 Copy full SHA for e2d58c1
File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
- # Remove this if targeting AArch64 from an AArch64 Linux box
1
+ # May need to remove these if targeting AArch64 from an AArch64 Linux box
2
+
2
3
[target .'cfg(all(target_os = "linux", target_arch = "aarch64"))' ]
3
- runner = ' qemu-aarch64'
4
+ runner = " qemu-aarch64"
4
5
5
6
[target .aarch64-unknown-linux-gnu ]
6
- linker = ' aarch64-linux-gnu-gcc'
7
+ linker = " aarch64-linux-gnu-gcc"
7
8
8
9
[target .aarch64-unknown-linux-musl ]
9
- linker = ' aarch64-linux-musl-gcc'
10
+ linker = " aarch64-linux-musl-gcc"
11
+ # AArch64 Linux musl targets are repeatedly affected under varying
12
+ # circumstances by fixedn't linking issues to compiler builtin symbols.
13
+ # Linking to libgcc, though arguably an inelegant hack that's only portable
14
+ # to our glibc from musl crosscompilation scenario, is effective to reliably
15
+ # provide an implementation of those fundamental symbols over time, without
16
+ # user-visible impacts on the final executables. See:
17
+ # https://github.com/rust-lang/rust/issues/46651
18
+ # https://github.com/rust-lang/compiler-builtins/issues/201
19
+ rustflags = [" -Clink-args=-lgcc" ]
You can’t perform that action at this time.
0 commit comments