[libc-commits] [libc] 2ee8fdb - [libc] Prevent building wchar on MacOS (#143978)

via libc-commits libc-commits at lists.llvm.org
Thu Jun 12 15:14:31 PDT 2025


Author: Uzair Nawaz
Date: 2025-06-12T22:14:28Z
New Revision: 2ee8fdbfddcca86ac079104718e6fda3aabed0eb

URL: https://github.com/llvm/llvm-project/commit/2ee8fdbfddcca86ac079104718e6fda3aabed0eb
DIFF: https://github.com/llvm/llvm-project/commit/2ee8fdbfddcca86ac079104718e6fda3aabed0eb.diff

LOG: [libc] Prevent building wchar on MacOS (#143978)

Prevent building wchar on macos as it depends on uchar.h which isn't
available

Added: 
    

Modified: 
    libc/src/__support/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/CMakeLists.txt b/libc/src/__support/CMakeLists.txt
index 309cde76370f0..7e85136c08851 100644
--- a/libc/src/__support/CMakeLists.txt
+++ b/libc/src/__support/CMakeLists.txt
@@ -391,6 +391,10 @@ add_subdirectory(fixed_point)
 
 add_subdirectory(time)
 
-add_subdirectory(wchar)
+# Requires access to uchar header which is not on macos
+# Therefore, cannot currently build this on macos in overlay mode
+if(NOT(LIBC_TARGET_OS_IS_DARWIN))
+  add_subdirectory(wchar)
+endif()
 
 add_subdirectory(math)


        


More information about the libc-commits mailing list