[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:13:01 PST 2023


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

>From 24f78f125b4f7a9ea4f3488d0acc396b510c86c8 Mon Sep 17 00:00:00 2001
From: Haowei Wu <haowei at google.com>
Date: Wed, 29 Nov 2023 00:00:53 -0800
Subject: [PATCH] [Fuchsia] Explicitly set C++ standard C++23 in libcxx tests

This patch explicitly set C++23 in libcxx tests to avoid a test
breakage caused by removal of codecvt.
---
 clang/cmake/caches/Fuchsia-stage2.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake
index 4b9085d99378c6f..ffd7e418ccaeee5 100644
--- a/clang/cmake/caches/Fuchsia-stage2.cmake
+++ b/clang/cmake/caches/Fuchsia-stage2.cmake
@@ -136,6 +136,7 @@ if(WIN32 OR LLVM_WINSYSROOT)
   set(RUNTIMES_${target}_CMAKE_EXE_LINKER_FLAGS ${WINDOWS_LINK_FLAGS} CACHE STRING "")
   set(RUNTIMES_${target}_CMAKE_SHARED_LINKER_FLAGS ${WINDOWS_LINK_FLAGS} CACHE STRING "")
   set(RUNTIMES_${target}_CMAKE_MODULE_LINKER_FLAGS ${WINDOWS_LINK_FLAGS} CACHE STRING "")
+  set(RUNTIMES_${target}_LIBCXX_TEST_PARAMS "std=c++23" CACHE STRING "")
 endif()
 
 foreach(target aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unknown-linux-gnu;riscv64-unknown-linux-gnu;x86_64-unknown-linux-gnu)



More information about the cfe-commits mailing list