[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:03:42 PST 2023


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

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

>From fc6f7dec3769ce748a097749dd5094081f113eb4 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..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)



More information about the cfe-commits mailing list