Remove obsolete Werror env.
This commit is contained in:
parent
5b3c9c65f2
commit
cf637c89ff
31
portage/env/werror.conf
vendored
31
portage/env/werror.conf
vendored
@ -1,31 +0,0 @@
|
||||
# Portage env Clang - Wno-error.
|
||||
|
||||
# Copyright 2022 Inference
|
||||
|
||||
|
||||
# Toolchain.
|
||||
AR="llvm-ar"
|
||||
CC="clang"
|
||||
CPP="clang-cpp"
|
||||
CXX="clang++"
|
||||
LD="ld.lld"
|
||||
STRINGS="llvm-strings"
|
||||
STRIP="llvm-strip"
|
||||
NM="llvm-nm"
|
||||
RANLIB="llvm-ranlib"
|
||||
READELF="llvm-readelf"
|
||||
OBJCOPY="llvm-objcopy"
|
||||
OBJDUMP="llvm-objdump"
|
||||
|
||||
|
||||
# Flags.
|
||||
## Hardening flags.
|
||||
C_SEC="-fPIE -fPIC -fstack-protector-all -fstack-clash-protection -D_FORTIFY_SOURCE=2 -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fwrapv"
|
||||
LD_SEC="-Wl,-z,now -Wl,-z,relro -pie -Wl,--strip-all"
|
||||
|
||||
## Common flags.
|
||||
CFLAGS="-march=znver1 -O1 -pipe -flto=full -Wno-error -U__gnu_linux__ ${C_SEC}"
|
||||
CXXFLAGS="-march=znver1 -O1 -pipe -flto=full ${C_SEC}"
|
||||
|
||||
## Linker flags.
|
||||
LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind ${LD_SEC}"
|
Loading…
x
Reference in New Issue
Block a user