Skip to content

Fix macOS cross compilation #134

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

Merged
merged 2 commits into from
Nov 11, 2021
Merged

Fix macOS cross compilation #134

merged 2 commits into from
Nov 11, 2021

Conversation

bording
Copy link
Member

@bording bording commented Nov 11, 2021

Looks like the changes I suggested in https://github.com/libgit2/libgit2sharp.nativebinaries/pull/131/files#r739734082 ended up preventing macOS cross compilation from working because OSXARCHITECTURE was only being set based on the architecture of the system the script was running on.

Now it will use the RID to set OSXARCHITECTURE and only falls back to system architecture when no RID has been set.

@bording bording merged commit 2215fc4 into master Nov 11, 2021
@bording bording deleted the fix-osx-arm64 branch November 11, 2021 01:16
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.

None yet

1 participant