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

[vcpkg] Fix arm64-osx triplet not building for arm64 #12716

Merged
merged 1 commit into from
Aug 5, 2020

Conversation

Deadpikle
Copy link
Contributor

@Deadpikle Deadpikle commented Aug 3, 2020

Right now, the arm64-osx triplet doesn't actually output arm64 binaries for macOS. If you run lipo -archs mylib.a, it will output x86_64, which clearly isn't correct. This PR adds VCPKG_OSX_ARCHITECTURES to the triplet so that it correctly builds for arm64 (as reported by the lipo tool). Note: You may need the Xcode 12 beta for this to actually build for arm64; I'm not sure.

This PR is a smaller change pulled from #12657 per discussion there.

  • What does your PR fix?

No issues closed.

  • Which triplets are supported/not supported? Have you updated the CI baseline?

This fixes the community arm64-osx triplet. Nothing changed for CI.

@PhoebeHui PhoebeHui self-assigned this Aug 4, 2020
@PhoebeHui PhoebeHui changed the title Fix arm64-osx triplet not building for arm64 [vcpkg] Fix arm64-osx triplet not building for arm64 Aug 4, 2020
@PhoebeHui PhoebeHui added the category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed label Aug 4, 2020
Copy link
Contributor

@PhoebeHui PhoebeHui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@PhoebeHui PhoebeHui added the info:reviewed Pull Request changes follow basic guidelines label Aug 5, 2020
@strega-nil strega-nil merged commit 8b0a554 into microsoft:master Aug 5, 2020
@Deadpikle Deadpikle deleted the fix/macos-arm64 branch August 10, 2020 13:52
hellozee pushed a commit to hellozee/vcpkg that referenced this pull request Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants