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

via libc-commits libc-commits at lists.llvm.org
Fri May 22 17:56:34 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Muhammad Bassiouni (bassiounix)

<details>
<summary>Changes</summary>



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


1 Files Affected:

- (modified) libc/test/src/__support/wctype/CMakeLists.txt (+10-1) 


``````````diff
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

``````````

</details>


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


More information about the libc-commits mailing list