Diff clang-common-15.0.7-r7 with a clang-common-16.0.6-r2
/usr/portage/sys-devel/clang-common/clang-common-16.0.6-r2.ebuild 2023-10-09 14:52:35.480368501 +0300 | ||
---|---|---|
10 | 10 | |
11 | 11 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
12 | 12 |
SLOT="0" |
13 |
KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv sparc x86 ~amd64-linux ~ppc-macos ~x64-macos" |
|
13 |
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc x86 ~amd64-linux ~ppc-macos ~x64-macos" |
|
14 | 14 |
IUSE=" |
15 | 15 |
default-compiler-rt default-libcxx default-lld llvm-libunwind |
16 | 16 |
hardened stricter |
... | ... | |
92 | 92 |
EOF |
93 | 93 | |
94 | 94 |
# Baseline hardening (bug #851111) |
95 |
# (-fstack-clash-protection is omitted because of a possible Clang bug, |
|
96 |
# see bug #892537 and bug #865339.) |
|
97 | 95 |
newins - gentoo-hardened.cfg <<-EOF |
98 | 96 |
# Some of these options are added unconditionally, regardless of |
99 | 97 |
# USE=hardened, for parity with sys-devel/gcc. |
98 |
-fstack-clash-protection |
|
100 | 99 |
-fstack-protector-strong |
101 | 100 |
-fPIE |
102 | 101 |
-include "${EPREFIX}/usr/include/gentoo/fortify.h" |
... | ... | |
156 | 155 |
-Werror=implicit-function-declaration |
157 | 156 |
-Werror=implicit-int |
158 | 157 |
-Werror=incompatible-function-pointer-types |
158 | ||
159 |
# constructs banned by C2x |
|
160 |
-Werror=deprecated-non-prototype |
|
161 | ||
162 |
# deprecated but large blast radius |
|
163 |
#-Werror=strict-prototypes |
|
159 | 164 |
EOF |
160 | 165 | |
161 | 166 |
cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die |