Skip to content

Commit 2ee8fdb

Browse files
authored
[libc] Prevent building wchar on MacOS (llvm#143978)
Prevent building wchar on macos as it depends on uchar.h which isn't available
1 parent 26f9161 commit 2ee8fdb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libc/src/__support/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@ add_subdirectory(fixed_point)
391391

392392
add_subdirectory(time)
393393

394-
add_subdirectory(wchar)
394+
# Requires access to uchar header which is not on macos
395+
# Therefore, cannot currently build this on macos in overlay mode
396+
if(NOT(LIBC_TARGET_OS_IS_DARWIN))
397+
add_subdirectory(wchar)
398+
endif()
395399

396400
add_subdirectory(math)

0 commit comments

Comments
 (0)