Skip to content

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

Merged
strega-nil merged 1 commit intomicrosoft:masterfrom
Deadpikle:fix/macos-arm64
Aug 5, 2020
Merged

[vcpkg] Fix arm64-osx triplet not building for arm64#12716
strega-nil merged 1 commit intomicrosoft:masterfrom
Deadpikle:fix/macos-arm64

Conversation

@Deadpikle
Copy link
Copy Markdown
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
Copy Markdown
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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. 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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants