commit:     84bffb47c84bc57fbbd409a72e5ae3d1cdb8cf9e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 18 02:02:18 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug 18 09:22:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84bffb47

sys-devel/clang-common: update for newer libcxx

Newer libcxx (>=17) uses _LIBCPP_ENABLE_HARDENED_MODE instead of 
_LIBCPP_ENABLE_ASSERTIONS
which is now deprecated.

Closes: https://bugs.gentoo.org/912223
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/clang-common/clang-common-17.0.0.9999.ebuild                 | 3 ++-
 ...lang-common-17.0.0_rc2.ebuild => clang-common-17.0.0_rc2-r1.ebuild} | 3 ++-
 sys-devel/clang-common/clang-common-18.0.0.9999.ebuild                 | 3 ++-
 sys-devel/clang-common/clang-common-18.0.0_pre20230803.ebuild          | 3 ++-
 sys-devel/clang-common/clang-common-18.0.0_pre20230810.ebuild          | 3 ++-
 5 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/sys-devel/clang-common/clang-common-17.0.0.9999.ebuild 
b/sys-devel/clang-common/clang-common-17.0.0.9999.ebuild
index 9295c64406f2..a64e6b0f2602 100644
--- a/sys-devel/clang-common/clang-common-17.0.0.9999.ebuild
+++ b/sys-devel/clang-common/clang-common-17.0.0.9999.ebuild
@@ -142,7 +142,8 @@ src_install() {
 
                        # Analogue to GLIBCXX_ASSERTIONS
                        # 
https://libcxx.llvm.org/UsingLibcxx.html#assertions-mode
-                       -D_LIBCPP_ENABLE_ASSERTIONS=1
+                       # 
https://libcxx.llvm.org/Hardening.html#using-hardened-mode
+                       -D_LIBCPP_ENABLE_HARDENED_MODE=1
                EOF
        fi
 

diff --git a/sys-devel/clang-common/clang-common-17.0.0_rc2.ebuild 
b/sys-devel/clang-common/clang-common-17.0.0_rc2-r1.ebuild
similarity index 98%
rename from sys-devel/clang-common/clang-common-17.0.0_rc2.ebuild
rename to sys-devel/clang-common/clang-common-17.0.0_rc2-r1.ebuild
index 9295c64406f2..a64e6b0f2602 100644
--- a/sys-devel/clang-common/clang-common-17.0.0_rc2.ebuild
+++ b/sys-devel/clang-common/clang-common-17.0.0_rc2-r1.ebuild
@@ -142,7 +142,8 @@ src_install() {
 
                        # Analogue to GLIBCXX_ASSERTIONS
                        # 
https://libcxx.llvm.org/UsingLibcxx.html#assertions-mode
-                       -D_LIBCPP_ENABLE_ASSERTIONS=1
+                       # 
https://libcxx.llvm.org/Hardening.html#using-hardened-mode
+                       -D_LIBCPP_ENABLE_HARDENED_MODE=1
                EOF
        fi
 

diff --git a/sys-devel/clang-common/clang-common-18.0.0.9999.ebuild 
b/sys-devel/clang-common/clang-common-18.0.0.9999.ebuild
index 9295c64406f2..a64e6b0f2602 100644
--- a/sys-devel/clang-common/clang-common-18.0.0.9999.ebuild
+++ b/sys-devel/clang-common/clang-common-18.0.0.9999.ebuild
@@ -142,7 +142,8 @@ src_install() {
 
                        # Analogue to GLIBCXX_ASSERTIONS
                        # 
https://libcxx.llvm.org/UsingLibcxx.html#assertions-mode
-                       -D_LIBCPP_ENABLE_ASSERTIONS=1
+                       # 
https://libcxx.llvm.org/Hardening.html#using-hardened-mode
+                       -D_LIBCPP_ENABLE_HARDENED_MODE=1
                EOF
        fi
 

diff --git a/sys-devel/clang-common/clang-common-18.0.0_pre20230803.ebuild 
b/sys-devel/clang-common/clang-common-18.0.0_pre20230803.ebuild
index 9295c64406f2..a64e6b0f2602 100644
--- a/sys-devel/clang-common/clang-common-18.0.0_pre20230803.ebuild
+++ b/sys-devel/clang-common/clang-common-18.0.0_pre20230803.ebuild
@@ -142,7 +142,8 @@ src_install() {
 
                        # Analogue to GLIBCXX_ASSERTIONS
                        # 
https://libcxx.llvm.org/UsingLibcxx.html#assertions-mode
-                       -D_LIBCPP_ENABLE_ASSERTIONS=1
+                       # 
https://libcxx.llvm.org/Hardening.html#using-hardened-mode
+                       -D_LIBCPP_ENABLE_HARDENED_MODE=1
                EOF
        fi
 

diff --git a/sys-devel/clang-common/clang-common-18.0.0_pre20230810.ebuild 
b/sys-devel/clang-common/clang-common-18.0.0_pre20230810.ebuild
index 9295c64406f2..a64e6b0f2602 100644
--- a/sys-devel/clang-common/clang-common-18.0.0_pre20230810.ebuild
+++ b/sys-devel/clang-common/clang-common-18.0.0_pre20230810.ebuild
@@ -142,7 +142,8 @@ src_install() {
 
                        # Analogue to GLIBCXX_ASSERTIONS
                        # 
https://libcxx.llvm.org/UsingLibcxx.html#assertions-mode
-                       -D_LIBCPP_ENABLE_ASSERTIONS=1
+                       # 
https://libcxx.llvm.org/Hardening.html#using-hardened-mode
+                       -D_LIBCPP_ENABLE_HARDENED_MODE=1
                EOF
        fi
 

Reply via email to