Skip to content

Support macos-arm64 - #129

Merged
bekir-ozturk merged 1 commit into
dotnet:masterfrom
sdmaclea:macos_apple_silicon
Jan 22, 2021
Merged

Support macos-arm64#129
bekir-ozturk merged 1 commit into
dotnet:masterfrom
sdmaclea:macos_apple_silicon

Conversation

@sdmaclea

@sdmaclea sdmaclea commented Jan 21, 2021

Copy link
Copy Markdown
Contributor

On macos-arm64 uname -m returns arm64. Update get_machine_architecture()

On macos-arm64 uname -m returns arm64.  Update get_machine_architecture()
@sdmaclea

sdmaclea commented Jan 21, 2021

Copy link
Copy Markdown
Contributor Author

This assumes the user wants the native runtime architecture. macos-arm64 can also emulate macos-x86_64 with Rosetta2. Under Rosetta2 shell emulation, uname -m returns x86_64. Which is fine since this hits the fallback code.

@bekir-ozturk

Copy link
Copy Markdown
Contributor

Hi @sdmaclea
Thank you very much for the PR. It looks like we should be fine with x86_64 under emulation since we default to x64. Or did you observe a problem there as well?

@sdmaclea

Copy link
Copy Markdown
Contributor Author

Or did you observe a problem there as well?

I think this is the right fix. MacOS Rosetta2 emulation just complicates the usage of the script, but it seems logical.

@sdmaclea

Copy link
Copy Markdown
Contributor Author

I don't have write privileges in this repo. Someone else will need to merge this.

@bekir-ozturk
bekir-ozturk merged commit 1ebb108 into dotnet:master Jan 22, 2021
@sdmaclea
sdmaclea deleted the macos_apple_silicon branch June 10, 2021 00:36
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.

3 participants