[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:59:33 PDT 2026


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

>From 0bc7fb9d97c5058bc708ac83f2b001cd13f11ca0 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 | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/libc/test/src/__support/wctype/CMakeLists.txt b/libc/test/src/__support/wctype/CMakeLists.txt
index 17c98dc3d2770..afef9da3945a8 100644
--- a/libc/test/src/__support/wctype/CMakeLists.txt
+++ b/libc/test/src/__support/wctype/CMakeLists.txt
@@ -7,8 +7,14 @@ add_libc_test(
   SRCS
     wctype_perfect_hash_test.cpp
   COMPILE_OPTIONS
-    $<$<CXX_COMPILER_ID:Clang>:-Xclang -fconstexpr-steps=10000000>
-    $<$<CXX_COMPILER_ID:GNU>:-fconstexpr-ops-limit=10000000>
+    $<$<AND:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_FRONTEND_VARIANT:MSVC>>:
+      -Xclang -fconstexpr-steps=10000000>
+
+    $<$<AND:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_FRONTEND_VARIANT:GNU>>:
+      -fconstexpr-steps=10000000>
+
+    $<$<CXX_COMPILER_ID:GNU>:
+      -fconstexpr-ops-limit=10000000>
   DEPENDS
     libc.src.__support.wctype.lower_to_upper
     libc.src.__support.wctype.upper_to_lower



More information about the libc-commits mailing list