-
Notifications
You must be signed in to change notification settings - Fork 119
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
The options to the linker need to be separate elements in the list, n… #427
Conversation
…ot a single element. This was breaking build on MacOS
Upstream does not have this: https://searchfox.org/mozilla-central/source/build/moz.configure/toolchain.configure#1736 |
Can you give some more context on this? The parameters look wrong in the original code and making the list 2 separate elements was the way I was able to get mozjs and then Servo to compile on a Mac OS Ventura. |
mozjs-sys/mozjs folder is from mozilla, so it's always good to check if upstream has similar patch. But from what I know We do run tests on Mac OS Venturain CI, so something might be wrong on your end. Which compiler/linker do you use? Clang with lld linker should work. |
This patch also fixes building ( |
Hm, I did some more digging and apparently apple changed their default linker: mesonbuild/meson#12282 (comment) and we should be able to get old one using Good old clang should still work and maybe it's only supported configuration: https://firefox-source-docs.mozilla.org/contributing/build/supported.html#tier-1-targets or because they switch Firefox builds to macOS 14.0 SDK just two months ago, so it might be unsupported configuration altogether. Anyhow this code should select lld on too latest xcode; so how exactly does error looks? |
This is the failure message:
|
Closed in favor of #436 |
["-Wl", "--version"] is work for me , return try_linker(linker, "-Wl,-v") not work. |
Does current main branch work for you? It firstly tries |
The options to the linker were a single element in a list instead of two elements. This was breaking build on MacOS