From cd39cf6a149a6965db2ee1fff7fcf7e52ffb74b8 Mon Sep 17 00:00:00 2001 From: Maximilian Date: Tue, 24 Jan 2023 13:29:06 -0600 Subject: [PATCH] Strip symbols when building for release --- .cargo/config.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 48cc062..cb6b74e 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,13 +2,13 @@ opt-level = "s" [target.x86_64-pc-windows-gnu] -rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=8", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"] +rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=8", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000", "-C", "link-arg=-s"] [target.x86_64-unknown-linux-gnu] -rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=8", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"] +rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=8", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000", "-C", "link-arg=-s"] [target.i686-pc-windows-gnu] -rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=4", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"] +rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=4", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000", "-C", "link-arg=-s"] [target.i686-unknown-linux-gnu] -rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=4", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"] \ No newline at end of file +rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=4", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000", "-C", "link-arg=-s"] \ No newline at end of file