Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL3: Building WebP in a vendored build for macOS fails when doing arm64+x86_64 builds #493

Open
nightmareci opened this issue Dec 23, 2024 · 0 comments

Comments

@nightmareci
Copy link

nightmareci commented Dec 23, 2024

The build fails when using CMake options -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11 -DCMAKE_OSX_ARCHITECTURES='arm64;x86_64' to produce a Universal Binary build:

In file included from /.../SDL_image/external/libwebp/sharpyuv/sharpyuv_csp.c:15:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/usr/include/math.h:614:27: error: _Float16 is not supported on this target
  614 | extern _Float16 __fabsf16(_Float16) __API_AVAILABLE(macos(15.0), ios(18.0), watchos(11.0), tvos(18.0));
      |                           ^

More errors similar to that one show up for math.h, the same error about _Float16. When doing a single-architecture build, just arm64 or x86_64, the build succeeds.

Edit:
I encountered those errors when using the CMake Ninja generator, but the errors don't show up when using the Xcode generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant