File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 229
229
230
230
# aarch64-linux-musl
231
231
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER = pkgs . writeShellScriptBin "linker" ''
232
+ for arg do
233
+ shift
234
+ [ "$arg" = "-lgcc_s" ] && set -- "$@" "-lunwind" && continue
235
+ set -- "$@" "$arg"
236
+ done
232
237
ZIG_GLOBAL_CACHE_DIR=$(mktemp -d) zig cc -target aarch64-linux-musl -dynamic $@
233
238
'' + /bin/linker ;
234
239
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS = "-C target-feature=-crt-static" ;
257
262
258
263
# x86_64-linux-musl
259
264
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER = pkgs . writeShellScriptBin "linker" ''
265
+ for arg do
266
+ shift
267
+ [ "$arg" = "-lgcc_s" ] && set -- "$@" "-lunwind" && continue
268
+ set -- "$@" "$arg"
269
+ done
260
270
ZIG_GLOBAL_CACHE_DIR=$(mktemp -d) zig cc -target x86_64-linux-musl -dynamic $@
261
271
'' + /bin/linker ;
262
272
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS = "-C target-feature=-crt-static" ;
You can’t perform that action at this time.
0 commit comments