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

[Add] --arch flag to swift build command. #58

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

MarvelousAnything
Copy link
Contributor

I was having issues building Spacedrive. It was building libsd-desktop-macos.a to swift-rs/sd-desktop-macos/x86_64-apple-macosx instead of swift-rs/sd-desktop-macos/arm64-apple-macosx. This prevented it from linking. I did also confirm that it was compiling for arm64, not x86. I eventually found that adding the --arch flag to the swift build command in swift-rs fixed it. I have tested compiling it on an x86 and m1 Mac, and it does not break it.

@Brendonovich
Copy link
Owner

This is probably a good idea, but I'm curious whether you had the x86_64 rust toolchain on your m1 mac

@MarvelousAnything
Copy link
Contributor Author

Yes. I do. I will try to build it after uninstalling the x86_64 toolchain. I will update you when I am done with that. If that fixes it, I will be more confused.

@MarvelousAnything
Copy link
Contributor Author

Just recompiled it after uninstalling the x86_64 toolchain. My only toolchain now is aarch64-apple-darwin. It failed with the same issue. I did some debugging yesterday on this and narrowed it down to the specific swift build command. The funny thing is when I manually ran the command, it worked fine.

@Brendonovich Brendonovich merged commit 634301f into Brendonovich:main Oct 10, 2023
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.

2 participants