summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2021-12-05 12:14:20 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2021-12-05 12:18:48 +0100
commit3ba9a05880fe55a52b2590b39263d5f0e77dea19 (patch)
tree2e84910a03d662680204dddc8c06857973769c8a /profiles/features
parentprofiles: add clang profile feature (diff)
downloadgentoo-3ba9a05880fe55a52b2590b39263d5f0e77dea19.tar.gz
gentoo-3ba9a05880fe55a52b2590b39263d5f0e77dea19.tar.bz2
gentoo-3ba9a05880fe55a52b2590b39263d5f0e77dea19.zip
profiles: minor fixups to clang feature
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'profiles/features')
-rw-r--r--profiles/features/clang/eapi2
-rw-r--r--profiles/features/clang/make.defaults12
2 files changed, 9 insertions, 5 deletions
diff --git a/profiles/features/clang/eapi b/profiles/features/clang/eapi
index 7f8f011eb73..7ed6ff82de6 100644
--- a/profiles/features/clang/eapi
+++ b/profiles/features/clang/eapi
@@ -1 +1 @@
-7
+5
diff --git a/profiles/features/clang/make.defaults b/profiles/features/clang/make.defaults
index 014816b3725..a2235ff4a49 100644
--- a/profiles/features/clang/make.defaults
+++ b/profiles/features/clang/make.defaults
@@ -1,4 +1,9 @@
-# use Clang as a primary compiler
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# this is for now highly experimental -dilfridge
+
+# use clang as the primary compiler
CC="clang"
CXX="clang++"
@@ -12,7 +17,7 @@ LDFLAGS="${LDFLAGS} -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--a
SOME_HARDENING_CFLAGS="-fPIC -fstack-protector-strong -D_FORTIFY_SOURCE=2"
SOME_HARDENING_LDFLAGS="-Wl,-z,relro,-z,now -pie"
-# enable some hardening by default
+# enable hardening by default, cf. gcc[pie,ssp]
CFLAGS="${CFLAGS} ${SOME_HARDENING_FLAGS}"
CXXFLAGS="${CXXFLAGS} ${SOME_HARDENING_FLAGS}"
LDFLAGS="${LDFLAGS} ${SOME_HARDENING_LDFLAGS}"
@@ -33,7 +38,7 @@ ADDR2LINE="llvm-addr2line"
# bootstrap USE for stage1
# curl needed by cmake
-BOOTSTRAP_USE="$BOOTSTRAP_USE ssl curl_ssl_openssl"
+BOOTSTRAP_USE="${BOOTSTRAP_USE} ssl curl_ssl_openssl"
# Clang needs this
BOOTSTRAP_USE="${BOOTSTRAP_USE} python_single_target_python3_9"
@@ -48,7 +53,6 @@ BOOTSTRAP_USE="${BOOTSTRAP_USE} compiler-rt clang libunwind"
BOOTSTRAP_USE="${BOOTSTRAP_USE} default-compiler-rt default-lld default-libcxx llvm-libunwind"
# sys-devel/clang-runtime
-# sanitizers are disabled for now
BOOTSTRAP_USE="${BOOTSTRAP_USE} libcxx -sanitize"
# sys-libs/libcxxabi