Skip to content

Commit 6a218ab

Browse files
authored
Enable symbol stripping for crossgen2 (#82698)
1 parent e303a45 commit 6a218ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Crossgen2.sfxproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<NativeAotSupported Condition="'$(CrossBuild)' == 'true' and '$(TargetOS)' != '$(HostOS)'">false</NativeAotSupported>
2323
<!-- Can't use NativeAOT in source build yet https://github.com/dotnet/runtime/issues/66859 -->
2424
<NativeAotSupported Condition="'$(DotNetBuildFromSource)' == 'true'">false</NativeAotSupported>
25+
<ObjCopyName Condition="'$(ContinuousIntegrationBuild)' == 'true' and '$(CrossBuild)' == 'true' and '$(RuntimeIdentifier)' == 'linux-musl-arm64'">llvm-objcopy-15</ObjCopyName>
26+
<ObjCopyName Condition="'$(ContinuousIntegrationBuild)' == 'true' and '$(CrossBuild)' == 'true' and '$(RuntimeIdentifier)' == 'linux-arm64'">aarch64-linux-gnu-objcopy</ObjCopyName>
2527
</PropertyGroup>
2628

2729
<Target Name="PublishCrossgen"
@@ -33,7 +35,7 @@
3335
DestinationFolder="$(MicrosoftNetCoreAppRuntimePackNativeDir)"
3436
SkipUnchangedFiles="true" />
3537

36-
<MSBuild Projects="$(RepoRoot)src/coreclr/tools/aot/crossgen2/crossgen2.csproj"
38+
<MSBuild Projects="$(RepoRoot)src/coreclr/tools/aot/crossgen2/crossgen2.csproj"
3739
Targets="Restore"
3840
Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid())
3941
;_IsPublishing=true
@@ -48,6 +50,8 @@
4850
;RuntimeIdentifier=$(PackageRID)
4951
;NativeAotSupported=$(NativeAotSupported)
5052
;CoreCLRArtifactsPath=$(CoreCLRArtifactsPath)
53+
;StripSymbols=true
54+
;ObjCopyName=$(ObjCopyName)
5155
;R2ROverridePath=$(MSBuildThisFileDirectory)ReadyToRun.targets">
5256
<Output TaskParameter="TargetOutputs"
5357
ItemName="_RawCrossgenPublishFiles" />

0 commit comments

Comments
 (0)