-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Deduplicate platform lists in BuildIntegration #82395
Conversation
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsWe only need to derive OS name from
|
0005e74
to
bc5a1aa
Compare
bc5a1aa
to
bc3422f
Compare
bc3422f
to
2f6287c
Compare
|
src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets
Show resolved
Hide resolved
src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets
Outdated
Show resolved
Hide resolved
dffe092
to
f82b4c3
Compare
f82b4c3
to
29a11f4
Compare
}; | ||
} | ||
"linux" or "linux-musl" => TargetOS.Linux, | ||
_ when lowerToken.StartsWith("win") => TargetOS.Windows, |
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.
It would be better if we accepted exact matches only. Does anything depend on the fuzziness of StartsWith
matches here?
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.
In the current revision, targets shouldn't pass win10
etc. (which was needed in earlier revision when we were passing values without using StartsWith in the targets).
@@ -14,5 +14,5 @@ Copyright (c) .NET Foundation. All rights reserved. | |||
<PropertyGroup> | |||
<NeedNativePublishSupportForSDK6>$(NETCoreSdkVersion.StartsWith('6'))</NeedNativePublishSupportForSDK6> | |||
</PropertyGroup> | |||
<Import Project="$(ILCompilerTargetsPath)" Condition="'$(NeedNativePublishSupportForSDK6)' == 'true'"/> | |||
<Import Project="$(ILCompilerTargetsPath)" Condition="'$(NeedNativePublishSupportForSDK6)' == 'true'"/> |
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.
NeedNativePublishSupportForSDK6
can be deleted (separate PR). We do not need to keep it around anymore.
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.
LGTM. Thank you!
We only need to derive OS name from
RuntimeIdentifier
once.