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

Mac M2 cross-compilation to x86_64 not working #2804

Closed
vic1707 opened this issue Sep 11, 2022 · 2 comments
Closed

Mac M2 cross-compilation to x86_64 not working #2804

vic1707 opened this issue Sep 11, 2022 · 2 comments
Labels
Milestone

Comments

@vic1707
Copy link
Contributor

vic1707 commented Sep 11, 2022

Xmake Version

v2.7.1+202208261458

Operating System Version and Architecture

macOS Monterey 12.5.1 on MacM2 (ARM64)

Describe Bug

Trying to compile from Macosx ARM64 to x86_64 with fmt package installed returns errors.
From what was discovered on discord, cmake.install() needs to be improved.

Expected Behavior

there shouldn't be any errors and fmt should be redownloaded/recompiled/made compatible for x86_64 linking.

Project Configuration

xmake.lua

add_rules("mode.release", "mode.debug")

add_requires("fmt")

target("treepp")
    set_kind("binary")
    set_languages("cxx20")
    add_files("src/**.cpp")
    add_includedirs("inc")
    add_packages("fmt")

Additional Information and Error Logs

image

image

image

@vic1707 vic1707 added the bug label Sep 11, 2022
@waruqi
Copy link
Member

waruqi commented Sep 11, 2022

I have improved it on dev. xmake update -s dev

@waruqi waruqi added this to the v2.7.2 milestone Sep 12, 2022
@waruqi waruqi closed this as completed Sep 12, 2022
@waruqi
Copy link
Member

waruqi commented Sep 12, 2022

For dependency packages that use autoconf, I also support it now. xmake update -s dev

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

No branches or pull requests

2 participants