Add No LTO Rust compiler flags.
This commit is contained in:
parent
f5122511f2
commit
8c2f7884c6
3
portage/env/nolto.conf
vendored
3
portage/env/nolto.conf
vendored
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user