From c83f15be45d42755fda9ec5a9cf42c0e262fefb1 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Tue, 13 Aug 2024 14:11:41 +0200 Subject: [PATCH] std_darwin.modulemap: Break cyclic module dependencies With the latest MacOSX15.0.sdk, Clang complains about a "cyclic dependency in module 'std': std -> _wctype -> __wctype -> std". Break this cycle by deleting the module for ctype.h in libc++, it only includes ctype.h from the C library which has its own module definition. Closes #16219 --- include/cling/std_darwin.modulemap | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/cling/std_darwin.modulemap b/include/cling/std_darwin.modulemap index 1628b291..c0923810 100644 --- a/include/cling/std_darwin.modulemap +++ b/include/cling/std_darwin.modulemap @@ -429,10 +429,6 @@ module std_complex_h [system] { header "complex.h" export * } -module std_ctype_h [system] { - header "ctype.h" - export * -} module std_errno_h [system] { header "errno.h" export *