-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Enable ARM64 packaging for macOS #15768
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
Conversation
build.psm1
Outdated
| # The property is set in Powershell.Common.props file. | ||
| # We override the property through the build command line. | ||
| if($Options.Runtime -like 'fxdependent*' -or $ForMinimalSize) { | ||
| if($Options.Runtime -eq 'osx-arm64' -or $Options.Runtime -like 'fxdependent*' -or $ForMinimalSize) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe r2r is supported with crossgen2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made the change, although since your PR to move to crossgen2 is still in draft, that's probably the right place to make the change when that move happens
build.psm1
Outdated
|
|
||
| function Test-IsArm64MacOS | ||
| { | ||
| return $IsMacOS -and (Start-NativeExecution -IgnoreExitCode { (arch -arm64 uname -p) -eq 'arm' } 2>$null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add this in Get-EnvironmentInfo.. that function is used by tests and packaging i believe which might need this info.
|
please fix CI issues |
|
I don't understand the failure -- why is |
|
@adityapatwardhan please re-review |
|
🎉 Handy links: |
|
partial backport for infrastructure fixe |
# Conflicts: # tools/packaging/packaging.psm1 # tools/releaseBuild/azureDevOps/templates/mac-package-build.yml # tools/releaseBuild/azureDevOps/templates/mac.yml
# Conflicts: # tools/packaging/packaging.psm1 # tools/releaseBuild/azureDevOps/templates/mac-package-build.yml # tools/releaseBuild/azureDevOps/templates/mac.yml # Conflicts: # tools/ci.psm1
|
🎉 Handy links: |
PR Summary
Fixes #15146, partially solves #15203.
PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).