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

fix build when xcode 13.3 command line tools are installed #15

Merged
merged 3 commits into from
Apr 13, 2022

Conversation

michaelknoch
Copy link
Member

@michaelknoch michaelknoch commented Apr 13, 2022

Using clang from ndk fixes a linking issue which occurs when updating xcode to 13.3

/usr/local/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.gold: error: cannot open /Applications/Xcode 13.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.1.6/lib/linux/libclang_rt.builtins-arm-android.a: No such file or directory
/usr/local/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.gold: error: cannot open /Applications/Xcode 13.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.1.6/lib/linux/libclang_rt.builtins-arm-android.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)
[105/449] Building C object UIKit/SDL/SDL2/CMakeFiles/SDL.dir/src/video/SDL_blit_auto.c.o
[106/449] Building C object UIKit/SDL/sdl-gpu/CMakeFiles/SDL_gpu.dir/renderer_GLES_3.c.o
[107/449] Building C object UIKit/SDL/SDL2/CMakeFiles/SDL.dir/src/audio/SDL_audiotypecvt.c.o
ninja: build stopped: subcommand failed.

Copy link

@rikner rikner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested it and it fixed the build for me as well 💯 👍

Copy link
Member

@ephemer ephemer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌🏼 🙌🏼 🙌🏼

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

Successfully merging this pull request may close these issues.

None yet

3 participants