From b84acc83bcdb1ba31c4f9142680b84d22cc98ba3 Mon Sep 17 00:00:00 2001 From: Maximilian Date: Tue, 24 Jan 2023 13:00:46 -0600 Subject: [PATCH] Add release profiles --- .cargo/config.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..0e599c7 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,14 @@ +[profile.release] +opt-level = "s" + +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=8", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"] + +[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"] + +[target.i686-pc-windows-msvc] +rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=4", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"] + +[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