-
-
Notifications
You must be signed in to change notification settings - Fork 785
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
Brew doesn't check architecture when cross-compiling #5028
Comments
you can debug here and improve is_cross.
|
How can I debug this on Github CI? I don't have a macOS at home |
new a test branch for xmake and add some logs. then switch to your branch in ci. |
the problem seems to come from pkgconfig:
(on a macOS arm64 runner, full log) should be fixed by #5039 |
waruqi
added a commit
that referenced
this issue
May 1, 2024
pkgconfig: don't find packages when cross-compiling (fix #5028)
merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Xmake Version
2.9.1
Operating System Version and Architecture
macOS GitHub CI
Describe Bug
When xmake checks for a package in brew on macOS, it doesn't check if the architecture matches.
If I'm not wrong, brew matches the host architecture (ARM for recent macOS) but xmake will try to find a poackage on brew if cross-compiling, resulting in found package but failed linking.
Expected Behavior
That xmake doesn't take packages in brew that don't match current architecture (I don't know how it can get this info as macOS supports multi-arch libs)
Project Configuration
should happen with using sfml on macOS ARM and targetting x86_64
Additional Information and Error Logs
https://github.com/NazaraEngine/ShaderLang/actions/runs/8870545303/job/24352454378?pr=40
here freetype is not installed as it's found on the system
The text was updated successfully, but these errors were encountered: