Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit eece401

Browse files
committed
Update ILLink version.
I verified that this causes no assembly trimming diffs. This change also exposes a new ILLink capability. Setting ILLinkClearInitLocals=true will cause the linker to clear initlocals flag on all methods. This is off by default and is exposed for perf experiments.
1 parent ea8fe5d commit eece401

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

external/ILLink/ILLink.depproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<NugetRuntimeIdentifier>$(ToolRuntimeRID)</NugetRuntimeIdentifier>
1010
<RidSpecificAssets>true</RidSpecificAssets>
1111
<ILLinkTasksPackageId>illink.tasks</ILLinkTasksPackageId>
12-
<ILLinkTasksPackageVersion>0.1.4-preview-981901</ILLinkTasksPackageVersion>
12+
<ILLinkTasksPackageVersion>0.1.4-preview-1222833</ILLinkTasksPackageVersion>
1313
</PropertyGroup>
1414
<ItemGroup>
1515
<PackageReference Include="$(ILLinkTasksPackageId)">

illink.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
<ILLinkArgs>$(ILLinkArgs) -v true</ILLinkArgs>
7272
<!-- reflection heuristics to apply -->
7373
<ILLinkArgs>$(ILLinkArgs) -h LdtokenTypeMethods,InstanceConstructors</ILLinkArgs>
74+
<!-- add a linker step to clear initlocals flag on all assemblies before the output step -->
75+
<ILLinkArgs Condition="'$(ILLinkClearInitLocals)' == 'true'">$(ILLinkArgs) -s ILLink.CustomSteps.ClearInitLocalsStep,ILLink.CustomSteps:OutputStep</ILLinkArgs>
7476
</PropertyGroup>
7577

7678
<MakeDir Directories="$(ILLinkTrimInputPath)" />

0 commit comments

Comments
 (0)