Skip to content

Commit ad3ab1e

Browse files
authored
Merge pull request #35288 from hoyosjs/juhoyosa/r2rmap-support
Package r2rmap files in crossgened SFX symbol package
2 parents 7b39058 + 1cb1d08 commit ad3ab1e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ This package is an internal implementation of the .NET Core SDK and is not meant
3939
<!-- Setting this suppresses getting documentation .xml files in the shared runtime output. -->
4040
<AllowedReferenceRelatedFileExtensions>.pdb</AllowedReferenceRelatedFileExtensions>
4141

42-
<!-- Pack .map files in symbols package (native symbols for Linux) -->
43-
<AllowedOutputExtensionsInSymbolsPackageBuildOutputFolder>$(AllowedOutputExtensionsInSymbolsPackageBuildOutputFolder);.map</AllowedOutputExtensionsInSymbolsPackageBuildOutputFolder>
42+
<!-- Pack .ni.r2rmap files in symbols package (native symbols for Linux) -->
43+
<AllowedOutputExtensionsInSymbolsPackageBuildOutputFolder>$(AllowedOutputExtensionsInSymbolsPackageBuildOutputFolder);.r2rmap</AllowedOutputExtensionsInSymbolsPackageBuildOutputFolder>
4444

4545
<!-- Optimize the framework using the crossgen2 tool -->
4646
<CrossgenOutput Condition=" '$(CrossgenOutput)' == '' AND '$(Configuration)' != 'Debug' ">true</CrossgenOutput>
4747

48-
<!-- Produce crossgen2 profiling symbols (.ni.pdb or .map files). -->
48+
<!-- Produce crossgen2 profiling symbols (.ni.pdb or .r2rmap files). -->
4949
<GenerateCrossgenProfilingSymbols>true</GenerateCrossgenProfilingSymbols>
5050
<GenerateCrossgenProfilingSymbols Condition=" '$(CrossgenOutput)' != 'true' OR '$(TargetOsName)' == 'osx' ">false</GenerateCrossgenProfilingSymbols>
5151

@@ -256,7 +256,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
256256
Outputs="$(ProjectDepsFilePath)">
257257

258258
<ItemGroup>
259-
<_RuntimeReference Include="@(ReferenceCopyLocalPaths)" Condition="'%(ReferenceCopyLocalPaths.Extension)' != '.pdb' AND '%(ReferenceCopyLocalPaths.Extension)' != '.map'" />
259+
<_RuntimeReference Include="@(ReferenceCopyLocalPaths)" Condition="'%(ReferenceCopyLocalPaths.Extension)' != '.pdb' AND '%(ReferenceCopyLocalPaths.Extension)' != '.r2rmap'" />
260260
</ItemGroup>
261261

262262
<RepoTasks.GenerateSharedFrameworkDepsFile
@@ -304,7 +304,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
304304
<!-- Include all .pdbs in build output. Some .pdb files are part of ReferenceCopyLocalPaths, but this can change when running /t:Pack /p:NoBuild=true. -->
305305
<BuildOutputFiles Include="$(TargetDir)*.pdb" Exclude="@(ReferenceCopyLocalPaths)" />
306306
<!-- crossgen2 symbols for Linux include a GUID in the file name which cannot be predicted. -->
307-
<BuildOutputFiles Include="$(TargetDir)*.map" Condition="'$(CrossGenSymbolsType)' == 'PerfMap'" />
307+
<BuildOutputFiles Include="$(TargetDir)*.r2rmap" Condition="'$(CrossGenSymbolsType)' == 'PerfMap'" />
308308

309309
<!-- Strip duplicate Files by checking for distinct %(FileName)%(Extension) -->
310310
<OutputFileNames Include="%(BuildOutputFiles.FileName)%(BuildOutputFiles.Extension)">
@@ -451,7 +451,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
451451
<Crossgen2Args>$(Crossgen2Args) @&quot;$(CrossgenToolDir)PlatformAssembliesPathsCrossgen2.rsp&quot;</Crossgen2Args>
452452
<Crossgen2Args Condition="Exists('$(RuntimePackageRoot)tools\StandardOptimizationData.mibc')">$(Crossgen2Args) &quot;-m:$(RuntimePackageRoot)tools\StandardOptimizationData.mibc&quot;</Crossgen2Args>
453453
<Crossgen2Args Condition="'$(GenerateCrossgenProfilingSymbols)' == 'true' and '$(TargetOsName)' == 'win'">$(Crossgen2Args) --pdb --pdb-path:&quot;$(CrossgenSymbolsTargetDir)&quot;</Crossgen2Args>
454-
<Crossgen2Args Condition="'$(GenerateCrossgenProfilingSymbols)' == 'true' and '$(TargetOsName)' != 'win'">$(Crossgen2Args) --perfmap --perfmap-path:&quot;$(CrossgenSymbolsTargetDir)&quot;</Crossgen2Args>
454+
<Crossgen2Args Condition="'$(GenerateCrossgenProfilingSymbols)' == 'true' and '$(TargetOsName)' != 'win'">$(Crossgen2Args) --perfmap --perfmap-format-version:1 --perfmap-path:&quot;$(CrossgenSymbolsTargetDir)&quot;</Crossgen2Args>
455455
</PropertyGroup>
456456

457457
<!-- All metadata in batched task comes from current @(IntermediateCrossgenAssembly) item. -->

0 commit comments

Comments
 (0)