Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/features/clang/
Date: Sun, 05 Dec 2021 11:19:14
Message-Id: 1638703128.3ba9a05880fe55a52b2590b39263d5f0e77dea19.dilfridge@gentoo
1 commit: 3ba9a05880fe55a52b2590b39263d5f0e77dea19
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 5 11:14:20 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 5 11:18:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ba9a058
7
8 profiles: minor fixups to clang feature
9
10 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
11
12 profiles/features/clang/eapi | 2 +-
13 profiles/features/clang/make.defaults | 12 ++++++++----
14 2 files changed, 9 insertions(+), 5 deletions(-)
15
16 diff --git a/profiles/features/clang/eapi b/profiles/features/clang/eapi
17 index 7f8f011eb73d..7ed6ff82de6b 100644
18 --- a/profiles/features/clang/eapi
19 +++ b/profiles/features/clang/eapi
20 @@ -1 +1 @@
21 -7
22 +5
23
24 diff --git a/profiles/features/clang/make.defaults b/profiles/features/clang/make.defaults
25 index 014816b37253..a2235ff4a494 100644
26 --- a/profiles/features/clang/make.defaults
27 +++ b/profiles/features/clang/make.defaults
28 @@ -1,4 +1,9 @@
29 -# use Clang as a primary compiler
30 +# Copyright 2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +# this is for now highly experimental -dilfridge
34 +
35 +# use clang as the primary compiler
36 CC="clang"
37 CXX="clang++"
38
39 @@ -12,7 +17,7 @@ LDFLAGS="${LDFLAGS} -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--a
40 SOME_HARDENING_CFLAGS="-fPIC -fstack-protector-strong -D_FORTIFY_SOURCE=2"
41 SOME_HARDENING_LDFLAGS="-Wl,-z,relro,-z,now -pie"
42
43 -# enable some hardening by default
44 +# enable hardening by default, cf. gcc[pie,ssp]
45 CFLAGS="${CFLAGS} ${SOME_HARDENING_FLAGS}"
46 CXXFLAGS="${CXXFLAGS} ${SOME_HARDENING_FLAGS}"
47 LDFLAGS="${LDFLAGS} ${SOME_HARDENING_LDFLAGS}"
48 @@ -33,7 +38,7 @@ ADDR2LINE="llvm-addr2line"
49 # bootstrap USE for stage1
50
51 # curl needed by cmake
52 -BOOTSTRAP_USE="$BOOTSTRAP_USE ssl curl_ssl_openssl"
53 +BOOTSTRAP_USE="${BOOTSTRAP_USE} ssl curl_ssl_openssl"
54
55 # Clang needs this
56 BOOTSTRAP_USE="${BOOTSTRAP_USE} python_single_target_python3_9"
57 @@ -48,7 +53,6 @@ BOOTSTRAP_USE="${BOOTSTRAP_USE} compiler-rt clang libunwind"
58 BOOTSTRAP_USE="${BOOTSTRAP_USE} default-compiler-rt default-lld default-libcxx llvm-libunwind"
59
60 # sys-devel/clang-runtime
61 -# sanitizers are disabled for now
62 BOOTSTRAP_USE="${BOOTSTRAP_USE} libcxx -sanitize"
63
64 # sys-libs/libcxxabi