mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 15:55:04 -10:00
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
19 lines
977 B
XML
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> |