Add RUSTFLAGS optimisation level.

This commit is contained in:
inference 2023-02-28 21:54:43 +00:00
parent 841ff933ce
commit 4ec75db812
Signed by: inference
SSH Key Fingerprint: SHA256:9Pl0nZ2UJacgm+IeEtLSZ4FOESgP1eKCtRflfPfdX9M

View File

@ -19,6 +19,6 @@ STRIP="strip"
## Compiler flags ## Compiler flags
CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe" CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe"
CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe" CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe"
RUSTFLAGS="-C debuginfo=0 -C target-cpu=znver3" RUSTFLAGS="-C debuginfo=0 -C opt-level=2 -C target-cpu=znver3"
## Linker flags ## Linker flags
LDFLAGS="-Wl,-O2 -Wl,--strip-all" LDFLAGS="-Wl,-O2 -Wl,--strip-all"