Skip to content

Commit f613343

Browse files
committed
cargo: workaround for successful compilation...
for aarch64 musl target. Signed-off-by: Diana Popa <[email protected]>
1 parent 9278e2a commit f613343

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.cargo/config

+6
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
[build]
22
target = "x86_64-unknown-linux-musl"
3+
4+
[target.aarch64-unknown-linux-musl]
5+
# On aarch64 musl depends on some libgcc functions (i.e `__addtf3` and other `*tf3` functions) for logic that uses
6+
# long double. Such functions are not builtin in the rust compiler, so we need to get them from libgcc.
7+
# No need for the `crt_static` flag as rustc appends it by default.
8+
rustflags = [ "-C", "link-arg=-lgcc" ]

0 commit comments

Comments
 (0)