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

explicitly set architecture for macos srt cmake build #100

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

ccbrown
Copy link
Contributor

@ccbrown ccbrown commented Jul 4, 2022

After #79, it seems like cmake wasn't doing the right thing by default when cross-compiling for x86_64 on macOS. It appeared to be creating a universal binary, which was not intended and triggers issues related to rust-lang/rust#55235.

After specifying CMAKE_OSX_ARCHITECTURES explicitly, cmake creates thin binaries and downstream applications can link successfully.

@ccbrown ccbrown requested review from alexfedosov and epingel2 July 4, 2022 19:03
@ccbrown ccbrown merged commit 09d4215 into main Jul 4, 2022
@ccbrown ccbrown deleted the set-srt-cmake-arch branch July 4, 2022 21:07
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