From 2ee8fdbfddcca86ac079104718e6fda3aabed0eb Mon Sep 17 00:00:00 2001 From: Uzair Nawaz Date: Thu, 12 Jun 2025 22:14:28 +0000 Subject: [PATCH] [libc] Prevent building wchar on MacOS (#143978) Prevent building wchar on macos as it depends on uchar.h which isn't available --- libc/src/__support/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libc/src/__support/CMakeLists.txt b/libc/src/__support/CMakeLists.txt index 309cde76370f..7e85136c0885 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)