[libcxx-commits] [libcxx] [llvm] [libc++] Upgrade Xcode to 26.0 (PR #160097)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 2 00:31:12 PDT 2025
================
@@ -17,7 +17,8 @@
// out-of-the-box.
// REQUIRES: has-fobjc-arc && darwin
-// ADDITIONAL_COMPILE_FLAGS: -fobjc-arc
+// FIXME: including <Foundation/Foundation.h> seems to be currently broken with modules enabled
+// ADDITIONAL_COMPILE_FLAGS: -fobjc-arc -fno-modules
----------------
philnik777 wrote:
Hate to break it to you, but it reproduces with `echo "#import <Foundation/Foundation.h>" | clang++ -x objective-c++ - -fmodules -fcxx-modules -std=c++26`:
```
While building module 'Foundation' imported from <stdin>:1:
While building module 'CoreGraphics' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSGeometry.h:14:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h:96:18: error: invalid bitwise operation between different enumeration types ('CGImageAlphaInfo' and 'CGImageComponentInfo')
96 | return alpha | component | byteOrder | pixelFormat;
| ~~~~~ ^ ~~~~~~~~~
While building module 'Foundation' imported from <stdin>:1:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:52:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSGeometry.h:14:9: fatal error: could not build module 'CoreGraphics'
14 | #import <CoreGraphics/CGBase.h>
| ~~~~~~~^
<stdin>:1:9: fatal error: could not build module 'Foundation'
1 | #import <Foundation/Foundation.h>
| ~~~~~~~^
3 errors generated.
```
https://github.com/llvm/llvm-project/pull/160097
More information about the libcxx-commits
mailing list