Have the linker strip the binary (cross-compile friendly)

pull/14/head
dvkt 4 years ago
parent dd6e7ee1ae
commit d2408b680e

@ -0,0 +1,2 @@
[build]
rustflags = ["-C", "link-arg=-s"]

@ -25,10 +25,9 @@ debug: $(PHETCH_DEBUG)
clean:
@rm -rf target
# Build and strip the release version
# Build the release version
$(PHETCH_RELEASE): $(RSFILES)
cargo build --release
strip $@
# Build the debug version
$(PHETCH_DEBUG): $(RSFILES)

Loading…
Cancel
Save