You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build Fleece with GCC 13 on my Mac, just so I can catch more build errors locally before pushing a PR. Unfortunately it doesn't work, because GCC doesn't appear to understand 'modern' Objective-C at all.
Steps to repro
After installing GCC with Homebrew, I just do this before running cmake:
followed by literally a bajillion errors in the .mm files due to GCC not understanding Obj-C block syntax (^), the nullable keyword, generic interfaces (like @interface NSEnumerator<ObjectType>), and on and on...
Analysis
Looks like we need to skip all the .mm files when building with GCC; that's fine since I don't intend to use the build products, just look for errors before they occur in CI.
Unfortunately I don't know CMake well enough to figure out how to conditionally remove them from platform_apple.cmake. All my attempts have resulted in cryptic errors from the cmake tool.
The text was updated successfully, but these errors were encountered:
I'm trying to build Fleece with GCC 13 on my Mac, just so I can catch more build errors locally before pushing a PR. Unfortunately it doesn't work, because GCC doesn't appear to understand 'modern' Objective-C at all.
Steps to repro
After installing GCC with Homebrew, I just do this before running
cmake
:Results
It fails with a bunch of instances of this error:
I modified platform_apple.cmake to set the
-fobjc-arc
flag only with AppleClang. Then it emits this warning:followed by literally a bajillion errors in the
.mm
files due to GCC not understanding Obj-C block syntax (^
), thenullable
keyword, generic interfaces (like@interface NSEnumerator<ObjectType>
), and on and on...Analysis
Looks like we need to skip all the
.mm
files when building with GCC; that's fine since I don't intend to use the build products, just look for errors before they occur in CI.Unfortunately I don't know CMake well enough to figure out how to conditionally remove them from platform_apple.cmake. All my attempts have resulted in cryptic errors from the
cmake
tool.The text was updated successfully, but these errors were encountered: