-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[macOS] Don't force the RID to be x64-only #16678
Conversation
f4d4a03
to
b1385db
Compare
Blazor is still causing issues with a parallel/double build of a RID for an app. |
The real fix is here: #16765 |
Maybe better
? |
/rebase |
We still need to keep the single RID as the blazor bits have issues
7088eca
to
f01d3c8
Compare
@@ -9,6 +9,7 @@ | |||
<NoWarn>$(NoWarn),CA1416</NoWarn> | |||
<!-- Disable multi-RID builds to workaround a parallel build issue --> | |||
<RuntimeIdentifier Condition="$(TargetFramework.Contains('-maccatalyst'))">maccatalyst-x64</RuntimeIdentifier> | |||
<RuntimeIdentifier Condition="$(TargetFramework.Contains('-maccatalyst')) and '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'arm64'">maccatalyst-arm64</RuntimeIdentifier> |
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.
Does it matter that this is checking whether the current machine is ARM64? Why would that matter for what RID to target? I get that it matters if you're going to run it, but it shouldn't affect compilation, no?
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.
Yeah, we typically build and run on the same machine on CI. The real issue is that Blazor and/or maccatalyst can do multiple rids. So without this people on arm64 can or deploy as it always builds x64.
We still need to keep the single RID as the blazor bits have issues
Description of Change
Use maccatalyst-arm64 on arm64 and maccatalyst-x64 on x64.