[clang] [Fuchsia] Explicitly set C++ standard C++23 in libcxx tests (PR #73760)

via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 00:04:13 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Haowei (zeroomega)

<details>
<summary>Changes</summary>

This patch explicitly set C++23 in libcxx tests to avoid a test breakage caused by removal of codecvt.

---
Full diff: https://github.com/llvm/llvm-project/pull/73760.diff


1 Files Affected:

- (modified) clang/cmake/caches/Fuchsia-stage2.cmake (+1) 


``````````diff
diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake
index 4b9085d99378c6f..57761ef194976bd 100644
--- a/clang/cmake/caches/Fuchsia-stage2.cmake
+++ b/clang/cmake/caches/Fuchsia-stage2.cmake
@@ -28,6 +28,7 @@ set(LLVM_STATIC_LINK_CXX_STDLIB ON CACHE BOOL "")
 set(LLVM_USE_RELATIVE_PATHS_IN_FILES ON CACHE BOOL "")
 set(LLDB_ENABLE_CURSES OFF CACHE BOOL "")
 set(LLDB_ENABLE_LIBEDIT OFF CACHE BOOL "")
+set(LIBCXX_TEST_PARAMS "std=c++23" CACHE STRING "")
 
 if(WIN32)
   set(FUCHSIA_DISABLE_DRIVER_BUILD ON)

``````````

</details>


https://github.com/llvm/llvm-project/pull/73760


More information about the cfe-commits mailing list