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 macos with xcode llvm #905

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

Julusian
Copy link
Contributor

@Julusian Julusian commented Sep 22, 2024

Closes #896

Read my comments in the issue for more step by step details on what was happening.
The TLDR is that this library current uses the symbol __ZTTNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE which was introduced in macos 12, even though compiling was telling it to target 10.13.
After quite some digging and debugging to figure out why, I have concluded that its the different config of brew llvm compared to system llvm, causing llvm to ignore the requested target.

This resolves that by simply using the system llvm instead.

I am not certain that the changes in build-skia.js are needed, but they match the setup done for aarch64-apple-darwin

I have verified this on an old mac I have which is running 10.13, after rerunning the skia compile step, and producing the new skia.darwin-x64.node from that it is now loadable on 10.13

@Brooooooklyn Brooooooklyn merged commit b099c0a into Brooooooklyn:main Oct 24, 2024
29 checks passed
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.

Minimum macos version
2 participants