Skip to content

Commit 5db028a

Browse files
authored
More precise CPU instruction set specification for ASP.NET composite (#47207)
Based on offline feedback I have modified build of the ASP.NET composite image to explicitly specify the following instruction set extensions per Tanner's suggestion: +x86-x64-v3 With this change, the composite image is about 500 KB longer - before the change its length was 33_392_640 B, after the change it's 33_832_960. As we're now working with the partial composite that reduced the previous publishing size by about 30~40 MB, hopefully this shouldn't be much of a concern. Thanks Tomas
1 parent 0196614 commit 5db028a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
489489
<ManagedAssetsFullPath>$(RuntimePackageRoot)$(ManagedAssetsPackagePath)</ManagedAssetsFullPath>
490490
<NativeAssetsFullPath>$(RuntimePackageRoot)$(NativeAssetsPackagePath)</NativeAssetsFullPath>
491491
<PartialCompositeAssemblyListPath>$(MSBuildThisFileDirectory)\PartialCompositeAssemblyList.txt</PartialCompositeAssemblyListPath>
492+
<InstructionSetSupport Condition="'$(TargetArchitecture)' == 'x64' or '$(TargetArchitecture)' == 'x86'">+x86-x64-v3</InstructionSetSupport>
492493
</PropertyGroup>
493494

494495
<RemoveDir Directories="$(CompositeTargetDir)" />
@@ -515,6 +516,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
515516
<WriteLinesToFile File="$(CompositeResponseFile)" Lines="-u:&quot;%(UnrootedAssemblyPaths.Identity)&quot;" Overwrite="false" />
516517
<WriteLinesToFile File="$(CompositeResponseFile)" Lines="&quot;%(PartialCompositeAssemblyPaths.Identity)&quot;" Overwrite="false" />
517518
<WriteLinesToFile File="$(CompositeResponseFile)" Lines="--out:&quot;$(CompositeTargetDir)$(CompositeFileName).dll&quot;" Overwrite="false" />
519+
<WriteLinesToFile File="$(CompositeResponseFile)" Lines="--instruction-set:$(InstructionSetSupport)" Overwrite="false" Condition="'$(InstructionSetSupport)' != ''" />
518520

519521
<ItemGroup>
520522
<NativeSharedObjects Include="$(NativeAssetsFullPath)\*.so" />

0 commit comments

Comments
 (0)