Add No LTO Rust compiler flags.

This commit is contained in:
inference 2022-11-06 09:09:39 +00:00
parent f5122511f2
commit 8c2f7884c6

View File

@ -1,4 +1,4 @@
# Portage env Clang - No LTO.
# Portage - env - Clang - No LTO
# Copyright 2022 Inference
@ -11,6 +11,7 @@ LD_SEC="-Wl,-pie -Wl,--strip-all -Wl,-z,defs -Wl,-z,now -Wl,-z,relro"
## Compiler flags.
CFLAGS="-march=znver3 -O2 -pipe -U__gnu_linux__ ${C_SEC}"
CXXFLAGS="-march=znver3 -O2 -pipe ${C_SEC}"
RUSTFLAGS="-C target-cpu=znver3 -C opt-level=2 -C debuginfo=0"
## Linker flags.
LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind ${LD_SEC}"