Files
dotnet-runtime/eng/codeOptimization.targets
T
Eric St. John e11a3e6a01 Restore IBC data and embed during Windows release builds
See the following docs.
https://github.com/dotnet/arcade/blob/dotnet/corefx@bac85242024ba867b6204b90c1522793093f5e31/Documentation/ArcadeSdk.md#ibc-optimization-data-embedding

We are using IBC data produced by our perf team and embedding into all builds of a DLL;
currently we don't distinguish cross-compiles of the same DLL, nor does arcade define any
conventions to do so.  I've disabled it for references and not-supported assemblies.


Commit migrated from https://github.com/dotnet/corefx/commit/96661fad0e63a7869539fa0981c8b8be2f3824d3
2019-02-21 13:08:34 -08:00

19 lines
977 B
XML

<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(ApplyPartialNgenOptimization)' == ''">
<ApplyPartialNgenOptimization Condition="'$(IsReferenceAssembly)' == 'true'">false</ApplyPartialNgenOptimization>
<ApplyPartialNgenOptimization Condition="'$(GeneratePlatformNotSupportedAssembly)' == 'true' OR '$(GeneratePlatformNotSupportedAssemblyMessage)' != ''">false</ApplyPartialNgenOptimization>
</PropertyGroup>
<Target Name="SetApplyPartialNgenOptimization"
Condition="'$(ApplyPartialNgenOptimization)' == ''"
BeforeTargets="CoreCompile">
<ItemGroup>
<_optimizationDataAssembly Include="$(IbcOptimizationDataDir)**\$(TargetFileName)" />
</ItemGroup>
<PropertyGroup>
<ApplyPartialNgenOptimization Condition="'@(_optimizationDataAssembly)' != ''">true</ApplyPartialNgenOptimization>
</PropertyGroup>
</Target>
</Project>