|
43 | 43 | <DefaultSubsets Condition="('$(DotNetBuildSourceOnly)' == 'true' and '$(PrimaryRuntimeFlavor)' != 'Mono') or ('$(TargetOS)' == 'windows' and '$(TargetArchitecture)' != 'x86' and '$(TargetArchitecture)' != 'x64')">clr+libs+tools+host+packs</DefaultSubsets>
|
44 | 44 | </PropertyGroup>
|
45 | 45 |
|
| 46 | + <PropertyGroup> |
| 47 | + <!-- If we're building in the VMR, then we want to build all of the assets even in a PGO-instrumented build as downstream repos will not be able to pull assets from a matching non-PGO-instrumented build. --> |
| 48 | + <BuildOnlyPgoInstrumentedAssets Condition="'$(PgoInstrument)' == 'true' and '$(DotNetBuild)' != 'true'">true</BuildOnlyPgoInstrumentedAssets> |
| 49 | + </PropertyGroup> |
| 50 | + |
46 | 51 | <!-- Init _subset here to allow RuntimeFlavor to be set as early as possible -->
|
47 | 52 | <PropertyGroup>
|
48 | 53 | <_subset Condition="'$(Subset)' != ''">+$(Subset.ToLowerInvariant())+</_subset>
|
|
79 | 84 | '$(BuildTargetFramework)' == '' or
|
80 | 85 | '$(BuildAllConfigurations)' == 'true'">libs.native+</DefaultLibrariesSubsets>
|
81 | 86 | <DefaultLibrariesSubsets>$(DefaultLibrariesSubsets)libs.sfx+libs.oob+libs.pretest</DefaultLibrariesSubsets>
|
82 |
| - <!-- Respect the DotNetBuildTests product flag when building the product. --> |
| 87 | + <!-- Respect the DotNetBuildTests product flag when building the product. --> |
83 | 88 | <DefaultLibrariesSubsets Condition="'$(DotNetBuildTests)' == 'true'">$(DefaultLibrariesSubsets)+libs.tests</DefaultLibrariesSubsets>
|
84 | 89 |
|
85 | 90 | <DefaultToolsSubsets>tools.illink</DefaultToolsSubsets>
|
|
391 | 396 | <ProjectToBuild Include="$(CoreClrProjectRoot)crossgen-corelib.proj" Category="clr" />
|
392 | 397 | </ItemGroup>
|
393 | 398 |
|
394 |
| - <ItemGroup Condition="$(_subset.Contains('+clr.packages+')) and '$(PgoInstrument)' != 'true'"> |
| 399 | + <ItemGroup Condition="$(_subset.Contains('+clr.packages+')) and '$(BuildOnlyPgoInstrumentedAssets)' != 'true'"> |
395 | 400 | <ProjectToBuild Include="$(CoreClrProjectRoot).nuget\coreclr-packages.proj" Pack="true" Category="clr" />
|
396 | 401 | <ProjectToBuild Include="$(CoreClrProjectRoot)tools\dotnet-pgo\dotnet-pgo-pack.proj" Pack="true" Category="clr" Condition="'$(DotNetBuildSourceOnly)' != 'true' and '$(RuntimeFlavor)' != 'Mono'"/>
|
397 | 402 | </ItemGroup>
|
|
448 | 453 | <ProjectToBuild Include="@(ManagedProjectToBuild)" BuildInParallel="true" Pack="true" Category="host" />
|
449 | 454 | </ItemGroup>
|
450 | 455 |
|
451 |
| - <ItemGroup Condition="$(_subset.Contains('+host.pkg+')) and '$(PgoInstrument)' != 'true'"> |
| 456 | + <ItemGroup Condition="$(_subset.Contains('+host.pkg+')) and '$(BuildOnlyPgoInstrumentedAssets)' != 'true'"> |
452 | 457 | <PkgprojProjectToBuild Include="$(InstallerProjectRoot)pkg\projects\host-packages.proj" SignPhase="MsiFiles" />
|
453 | 458 | <ProjectToBuild Include="@(PkgprojProjectToBuild)" Pack="true" Category="host" />
|
454 | 459 | </ItemGroup>
|
|
508 | 513 |
|
509 | 514 | <Choose>
|
510 | 515 | <When Condition="$(_subset.Contains('+packs.product+'))">
|
511 |
| - <ItemGroup Condition="'$(PgoInstrument)' != 'true'"> |
| 516 | + <ItemGroup Condition="'$(BuildOnlyPgoInstrumentedAssets)' != 'true'"> |
512 | 517 | <SharedFrameworkProjectToBuild Condition="'$(BuildMonoAOTCrossCompilerOnly)' != 'true'" Include="$(InstallerProjectRoot)pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Ref.sfxproj" />
|
513 | 518 | </ItemGroup>
|
514 |
| - <ItemGroup Condition="'$(BuildNativeAOTRuntimePack)' != 'true' and '$(PgoInstrument)' != 'true'"> |
| 519 | + <ItemGroup Condition="'$(BuildNativeAOTRuntimePack)' != 'true' and '$(BuildOnlyPgoInstrumentedAssets)' != 'true'"> |
515 | 520 | <SharedFrameworkProjectToBuild Condition="'$(RuntimeFlavor)' == '$(PrimaryRuntimeFlavor)' and '$(TargetsMobile)' != 'true'" Include="$(InstallerProjectRoot)pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Host.sfxproj" />
|
516 | 521 | <SharedFrameworkProjectToBuild Condition="'$(RuntimeFlavor)' != 'Mono'" Include="$(InstallerProjectRoot)pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Crossgen2.sfxproj" />
|
517 | 522 | <SharedFrameworkProjectToBuild Condition="'$(RuntimeFlavor)' == '$(PrimaryRuntimeFlavor)' and '$(TargetsMobile)' != 'true'" Include="$(InstallerProjectRoot)pkg\sfx\installers\dotnet-host.proj" />
|
|
521 | 526 | <SharedFrameworkProjectToBuild Condition="'$(MonoCrossAOTTargetOS)' != ''" Include="$(InstallerProjectRoot)pkg\sfx\Microsoft.NETCore.App\monocrossaot.sfxproj" Pack="true" />
|
522 | 527 | </ItemGroup>
|
523 | 528 | <ItemGroup>
|
524 |
| - <ProjectToBuild Condition="'$(NativeAotSupported)' == 'true' and '$(RuntimeFlavor)' != 'Mono' and '$(PgoInstrument)' != 'true'" Include="$(InstallerProjectRoot)\pkg\projects\nativeaot-packages.proj" Category="packs" /> |
| 529 | + <ProjectToBuild Condition="'$(NativeAotSupported)' == 'true' and '$(RuntimeFlavor)' != 'Mono' and '$(BuildOnlyPgoInstrumentedAssets)' != 'true'" Include="$(InstallerProjectRoot)\pkg\projects\nativeaot-packages.proj" Category="packs" /> |
525 | 530 | </ItemGroup>
|
526 | 531 | <ItemGroup>
|
527 | 532 | <SharedFrameworkProjectToBuild Condition="'$(BuildMonoAOTCrossCompilerOnly)' != 'true'" Include="$(InstallerProjectRoot)pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj" />
|
|
531 | 536 | </When>
|
532 | 537 | </Choose>
|
533 | 538 |
|
534 |
| - <ItemGroup Condition="$(_subset.Contains('+packs.installers+')) AND '$(PgoInstrument)' != 'true'"> |
| 539 | + <ItemGroup Condition="$(_subset.Contains('+packs.installers+')) AND '$(BuildOnlyPgoInstrumentedAssets)' != 'true'"> |
535 | 540 | <InstallerProjectToBuild Include="$(InstallerProjectRoot)pkg\sfx\installers.proj" />
|
536 | 541 | <ProjectToBuild Include="@(InstallerProjectToBuild)" Category="packs" />
|
537 | 542 | </ItemGroup>
|
538 | 543 |
|
539 |
| - <ItemGroup Condition="$(_subset.Contains('+packs.tests+')) AND '$(PgoInstrument)' != 'true'"> |
| 544 | + <ItemGroup Condition="$(_subset.Contains('+packs.tests+')) AND '$(BuildOnlyPgoInstrumentedAssets)' != 'true'"> |
540 | 545 | <TestProjectToBuild Include="$(InstallerProjectRoot)tests\Microsoft.DotNet.CoreSetup.Packaging.Tests\Microsoft.DotNet.CoreSetup.Packaging.Tests.csproj" />
|
541 | 546 | <ProjectToBuild Include="@(TestProjectToBuild)" BuildInParallel="true" Test="true" Category="packs" />
|
542 | 547 | </ItemGroup>
|
|
0 commit comments