Skip to content

Commit 6512ff9

Browse files
committed
chore: link gcc on slim x86_64 musl builds
1 parent fcdf110 commit 6512ff9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ cargo_build_release:
9292
rustup component add rust-src --toolchain stable --target $(TARGET); \
9393
cargo install cross --git https://github.com/cross-rs/cross; \
9494
$(BUILDER) build --target=$(TARGET) --release; \
95-
elif [[ $(TARGET) == "aarch64-unknown-linux-musl" ]] || [[ $(TARGET) == "armv5te-unknown-linux-musleabi" ]]; then \
96-
RUSTFLAGS="-Zlocation-detail=none -C link-arg=-lgcc" $(BUILDER) +nightly build -Z build-std=std,panic_abort,core,alloc,proc_macro --target=$(TARGET) --bin $(BINARY_NAME) --release; \
95+
elif [[ $(TARGET) == "aarch64-unknown-linux-musl" ]] || [[ $(TARGET) == "armv5te-unknown-linux-musleabi" ]] || [[ $(TARGET) == "x86_64-unknown-linux-musl" ]]; then \
96+
RUSTFLAGS="-Zlocation-detail=none -Zunstable-options -Cpanic=immediate-abort -C link-arg=-lgcc " $(BUILDER) +nightly build -Z build-std=std,panic_abort,core,alloc,proc_macro --target=$(TARGET) --bin $(BINARY_NAME) --release; \
9797
elif [[ $(TARGET) == *"musl"* ]]; then \
9898
RUSTFLAGS="-Zlocation-detail=none -Zunstable-options -Cpanic=immediate-abort" $(BUILDER) +nightly build -Z build-std=std,panic_abort,core,alloc,proc_macro --target=$(TARGET) --bin $(BINARY_NAME) --release; \
9999
else \

0 commit comments

Comments
 (0)