[libcxx-commits] [libcxx] [libcxx] make CI hardening-mode-extensive-observe to compile both dylib and test in observe mode (PR #230776)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Oct 10 05:34:53 PDT 2026
https://github.com/huixie90 updated https://github.com/llvm/llvm-project/pull/230776
>From 7d001966fe9bbc90b9aad466cb7f7f273a21abdf Mon Sep 17 00:00:00 2001
From: Hui Xie <hui.xie1990 at gmail.com>
Date: Sat, 10 Oct 2026 11:27:43 +0100
Subject: [PATCH 1/2] [libcxx] make CI hardening-mode-extensive-observe to
compile both dylib and test in observe mode
---
.../Generic-hardening-mode-extensive-observe-semantic.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcxx/cmake/caches/Generic-hardening-mode-extensive-observe-semantic.cmake b/libcxx/cmake/caches/Generic-hardening-mode-extensive-observe-semantic.cmake
index c843c02977a87..a4b7a987ab41e 100644
--- a/libcxx/cmake/caches/Generic-hardening-mode-extensive-observe-semantic.cmake
+++ b/libcxx/cmake/caches/Generic-hardening-mode-extensive-observe-semantic.cmake
@@ -1,2 +1,2 @@
set(LIBCXX_HARDENING_MODE "extensive" CACHE STRING "")
-set(LIBCXX_TEST_PARAMS "assertion_semantic=observe" CACHE STRING "")
+set(LIBCXX_ASSERTION_SEMANTIC "observe" CACHE STRING "")
>From a6003e8ebcc55e161849c73f74e96ec8ea6c31e6 Mon Sep 17 00:00:00 2001
From: Hui Xie <hui.xie1990 at gmail.com>
Date: Sat, 10 Oct 2026 13:34:41 +0100
Subject: [PATCH 2/2] try
---
libcxx/src/CMakeLists.txt | 2 +-
libcxx/src/{experimental => }/log_hardening_failure.cpp | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename libcxx/src/{experimental => }/log_hardening_failure.cpp (100%)
diff --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt
index 99e6bfb5692f5..593909b292db7 100644
--- a/libcxx/src/CMakeLists.txt
+++ b/libcxx/src/CMakeLists.txt
@@ -35,6 +35,7 @@ set(LIBCXX_SOURCES
include/ryu/ryu.h
include/to_chars_floating_point.h
include/from_chars_floating_point.h
+ log_hardening_failure.cpp
memory.cpp
memory_resource.cpp
new_handler.cpp
@@ -307,7 +308,6 @@ endif()
# Build the experimental static library
set(LIBCXX_EXPERIMENTAL_SOURCES
experimental/keep.cpp
- experimental/log_hardening_failure.cpp
)
if (LIBCXX_PSTL_BACKEND STREQUAL "libdispatch")
diff --git a/libcxx/src/experimental/log_hardening_failure.cpp b/libcxx/src/log_hardening_failure.cpp
similarity index 100%
rename from libcxx/src/experimental/log_hardening_failure.cpp
rename to libcxx/src/log_hardening_failure.cpp
More information about the libcxx-commits
mailing list