Add RUSTFLAGS to No LTO, No PIE env.

This commit is contained in:
inference 2022-11-13 09:49:31 +00:00
parent e770205018
commit 7ba6911b41

View File

@ -3,7 +3,7 @@
# Copyright 2022 Inference
# License: BSD 3-Clause Clear
# 0.0.0.0
# 0.1.0.1
# Flags.
@ -14,6 +14,7 @@ LD_SEC="-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}"