From 0241a698c836b5ec7b7491bcb5fbc60c52e698ee Mon Sep 17 00:00:00 2001 From: chris west Date: Mon, 13 Jan 2020 14:59:55 -0800 Subject: [PATCH] let linker strip release binaries --- .cargo/config | 2 ++ Makefile | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..919fe30 --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[build] +rustflags = ["-C", "link-arg=-s"] diff --git a/Makefile b/Makefile index 4c00e81..71c09b2 100644 --- a/Makefile +++ b/Makefile @@ -27,10 +27,9 @@ uninstall: $(RELEASE) clean: -rm -rf target -# Build and strip the release version +# Build the release version $(RELEASE): $(SOURCES) cargo build --release - strip $@ # Build the debug version $(DEBUG): $(SOURCES)