mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 11:37:04 +09:00

Follow-up on #32451 Follow-up on #80074 In #43651, the "Windows" OS name was lowercased to achieve target frameworks with RIDs in them. At that time, the original plan was to lowercase all TargetOS values but that had to be cut because of resources. This PR finishes that and updates build systems, YML, markdowns and managed components. To not break existing developer workflows, the passed-in -os value is automatically lower-cased in the script entry points and validated in the msbuild entry point.
30 lines
1.7 KiB
XML
30 lines
1.7 KiB
XML
<Project>
|
|
|
|
<PropertyGroup Condition="'$(IsEligibleForNgenOptimization)' == ''">
|
|
<IsEligibleForNgenOptimization>true</IsEligibleForNgenOptimization>
|
|
<IsEligibleForNgenOptimization Condition="'$(IsReferenceAssemblyProject)' == 'true'">false</IsEligibleForNgenOptimization>
|
|
<IsEligibleForNgenOptimization Condition="'$(GeneratePlatformNotSupportedAssembly)' == 'true' or '$(GeneratePlatformNotSupportedAssemblyMessage)' != ''">false</IsEligibleForNgenOptimization>
|
|
<!-- There's an issue causing IBCMerge failures because of mismatched MVIDs
|
|
across many of our assemblies on Mac, so disable
|
|
IBCMerge optimizations on Mac for now to unblock the official build.
|
|
See issue https://github.com/dotnet/runtime/issues/33303
|
|
-->
|
|
<IsEligibleForNgenOptimization Condition="'$(TargetOS)' == 'osx' or '$(TargetsMobile)' == 'true'">false</IsEligibleForNgenOptimization>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="SetApplyNgenOptimization"
|
|
Condition="'$(IsEligibleForNgenOptimization)' == 'true'"
|
|
BeforeTargets="CoreCompile">
|
|
<PropertyGroup>
|
|
<IbcOptimizationDataDir Condition="'$(TargetOS)' == 'unix' or '$(TargetOS)' == 'linux'">$(IbcOptimizationDataDir)linux\</IbcOptimizationDataDir>
|
|
<IbcOptimizationDataDir Condition="'$(TargetOS)' == 'windows'">$(IbcOptimizationDataDir)windows\</IbcOptimizationDataDir>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<_optimizationDataAssembly Include="$(IbcOptimizationDataDir)**\$(TargetFileName)" />
|
|
</ItemGroup>
|
|
<PropertyGroup>
|
|
<ApplyNgenOptimization Condition="'@(_optimizationDataAssembly)' != ''">full</ApplyNgenOptimization>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
</Project>
|