Skip to content

Commit 2b9fc02

Browse files
authored
Disable PerfMap generation for Apple mobile platforms (#51545)
2 parents e76657c + 3bcdb4b commit 2b9fc02

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/PrepareForReadyToRunCompilation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private void ProcessInputFileList(
210210
// an input to the ReadyToRunCompiler task
211211
TaskItem r2rCompilationEntry = new(file);
212212
r2rCompilationEntry.SetMetadata(MetadataKeys.OutputR2RImage, outputR2RImage);
213-
if (outputPDBImage != null && ReadyToRunUseCrossgen2 && !_crossgen2IsVersion5)
213+
if (outputPDBImage != null && ReadyToRunUseCrossgen2 && !_crossgen2IsVersion5 && EmitSymbols)
214214
{
215215
r2rCompilationEntry.SetMetadata(MetadataKeys.EmitSymbols, "true");
216216
r2rCompilationEntry.SetMetadata(MetadataKeys.OutputPDBImage, outputPDBImage);

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.CrossGen.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Copyright (c) .NET Foundation. All rights reserved.
2424
<PublishReadyToRunComposite Condition="'$(PublishReadyToRunUseCrossgen2)' != 'true' or '$(SelfContained)' != 'true'">false</PublishReadyToRunComposite>
2525
<PublishReadyToRunUseRuntimePackOptimizationData Condition="'$(PublishReadyToRunUseRuntimePackOptimizationData)' == ''">true</PublishReadyToRunUseRuntimePackOptimizationData>
2626
<PublishReadyToRunPerfmapFormatVersion Condition="'$(PublishReadyToRunPerfmapFormatVersion)' == ''">1</PublishReadyToRunPerfmapFormatVersion>
27+
<PublishReadyToRunEmitSymbols Condition="'$(PublishReadyToRunEmitSymbols)' == '' and ('$(TargetPlatformIdentifier)' == 'ios' or '$(TargetPlatformIdentifier)' == 'tvos' or '$(TargetPlatformIdentifier)' == 'maccatalyst')">false</PublishReadyToRunEmitSymbols>
2728
</PropertyGroup>
2829

2930
<!--

0 commit comments

Comments
 (0)