[libc-commits] [libc] [libc][NFC][wctype] Fix test ci for old drivers (PR #199307)

Muhammad Bassiouni via libc-commits libc-commits at lists.llvm.org
Fri May 22 17:55:55 PDT 2026


https://github.com/bassiounix created https://github.com/llvm/llvm-project/pull/199307

None

>From 443e305aa0cff930127bb2e8c4cb3c5b14736341 Mon Sep 17 00:00:00 2001
From: bassiounix <muhammad.m.bassiouni at gmail.com>
Date: Sat, 23 May 2026 03:54:20 +0300
Subject: [PATCH] [libc][NFC][wctype] Fix test ci for old drivers

---
 libc/test/src/__support/wctype/CMakeLists.txt | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/libc/test/src/__support/wctype/CMakeLists.txt b/libc/test/src/__support/wctype/CMakeLists.txt
index 17c98dc3d2770..721ff183906c6 100644
--- a/libc/test/src/__support/wctype/CMakeLists.txt
+++ b/libc/test/src/__support/wctype/CMakeLists.txt
@@ -7,7 +7,16 @@ add_libc_test(
   SRCS
     wctype_perfect_hash_test.cpp
   COMPILE_OPTIONS
-    $<$<CXX_COMPILER_ID:Clang>:-Xclang -fconstexpr-steps=10000000>
+    $<$<AND:
+        $<CXX_COMPILER_ID:Clang>,
+        $<STREQUAL:${CMAKE_CXX_COMPILER_FRONTEND_VARIANT},MSVC>
+      >:-Xclang -fconstexpr-steps=10000000>
+
+    $<$<AND:
+        $<CXX_COMPILER_ID:Clang>,
+        $<STREQUAL:${CMAKE_CXX_COMPILER_FRONTEND_VARIANT},GNU>
+      >:-fconstexpr-steps=10000000>
+
     $<$<CXX_COMPILER_ID:GNU>:-fconstexpr-ops-limit=10000000>
   DEPENDS
     libc.src.__support.wctype.lower_to_upper



More information about the libc-commits mailing list