Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move MSBuild projects out of the native build scripts #31701

Merged
81 commits merged into from
Mar 4, 2020
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
1415bde
Move coreclr managed tools that don't need to be published and System…
jkoritzinsky Jan 29, 2020
f5657c8
Remove building System.Private.CoreLib from build scripts. Eventing s…
jkoritzinsky Jan 29, 2020
2d47605
Build packages via an Arcade subset instead of within build.cmd/build.sh
jkoritzinsky Jan 29, 2020
318989c
Remove packages and test build from build.cmd. Clean up options on bu…
jkoritzinsky Jan 29, 2020
1841ceb
Generate eventing sources for System.Private.CoreLib within MSBuild i…
jkoritzinsky Jan 29, 2020
56c0f45
Remove check-definitions.py script and supporting goo.
jkoritzinsky Jan 29, 2020
328bdab
Fix eventing generation.
jkoritzinsky Jan 30, 2020
0cd1ce3
Wire up TargetArchitecture and OSGroup to coreclr's BuildArch and Bu…
jkoritzinsky Jan 30, 2020
620718d
Stop passing down now non-existent skiptests parameter.
jkoritzinsky Jan 30, 2020
b83f3c3
Fix coreclr .nuget rid parsing to account for linux-musl correctly.
jkoritzinsky Jan 30, 2020
8c21050
Update build scripts to use Arcade to build packages.
jkoritzinsky Jan 31, 2020
d4da3d6
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Jan 31, 2020
0c17b77
Convert from Properties to AdditionalProperties.
jkoritzinsky Jan 31, 2020
c65fc60
Build crossgen as part of Arcade (self-contained publish TBD).
jkoritzinsky Jan 31, 2020
f724a03
Pull down .NET runtime CLI for helix runs with crossgen2.
jkoritzinsky Jan 31, 2020
430db11
Output crossgen2 to the BinDir/crossgen when built from the project f…
jkoritzinsky Jan 31, 2020
6799479
Generate distro rid during windows build.
jkoritzinsky Feb 1, 2020
11371de
Various fixes to get files binplaced correctly and builds to work on …
jkoritzinsky Feb 3, 2020
f19e0e4
Merge branch 'hoist-S.P.CL' of https://github.com/jkoritzinsky/runtim…
jkoritzinsky Feb 3, 2020
8e36e86
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Feb 3, 2020
37ea4fa
Fix search for dotnet in repo on bash.
jkoritzinsky Feb 3, 2020
03f8275
Remove __BuildTest variable and fix up the script.
jkoritzinsky Feb 4, 2020
2d119c7
Fix steps in build-job to build S.P.CL before the runtime and build m…
jkoritzinsky Feb 4, 2020
447accf
Fix casing typo.
jkoritzinsky Feb 4, 2020
13a80ad
Refactor detecting system OS and Architecture.
jkoritzinsky Feb 4, 2020
51e0f1c
Fix wasm rid calculation.
jkoritzinsky Feb 4, 2020
e652d87
Run crossgen2 on corerun so we run it on the runtime we're going to s…
jkoritzinsky Feb 4, 2020
911c736
Assemble a live self-contained publish in the crossgen2 package.
jkoritzinsky Feb 4, 2020
f8b0b2b
Fix init-os-and-arch resolution.
jkoritzinsky Feb 4, 2020
a52c8c8
Ensure that the runtime files we package in crossgen2 are the crossge…
jkoritzinsky Feb 5, 2020
e228b91
Remove extraneous /bl
jkoritzinsky Feb 5, 2020
ebd026d
Build R2RDump to a subfolder instead of the product dir.
jkoritzinsky Feb 5, 2020
293f46a
Merge branch 'hoist-S.P.CL' of E:/home/jekoritz/runtime into hoist-S.…
jkoritzinsky Feb 5, 2020
6cdc3f1
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Feb 5, 2020
d0d937c
Seperate out the crosssgening corelib step into a separate script.
jkoritzinsky Feb 7, 2020
57fc394
Fix permissions on crossgen-corelib.sh
jkoritzinsky Feb 7, 2020
465e572
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Feb 7, 2020
04dc07f
Rename build.cmd/sh to build-runtime.cmd/sh
jkoritzinsky Feb 7, 2020
51a3fa8
Fix parameters in crossgen2determinism test.
jkoritzinsky Feb 10, 2020
2da7fa2
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Feb 10, 2020
f757242
Run crossgen on System.Private.CoreLib in CI.
jkoritzinsky Feb 10, 2020
2471de8
Restore original build.cmd/sh scripts with a deprecation warning and …
jkoritzinsky Feb 10, 2020
0e2a192
Initialize developer prompt in crossgen-corelib.cmd script so we can …
jkoritzinsky Feb 10, 2020
81e2176
Merge branch 'hoist-S.P.CL' of https://github.com/jkoritzinsky/runtim…
jkoritzinsky Feb 10, 2020
16915b5
Make sure vs tools are enabled so we can resolve DiaSymReader.
jkoritzinsky Feb 10, 2020
d1f8d0f
Call build-native instead of build.
jkoritzinsky Feb 10, 2020
920b521
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Feb 10, 2020
f2a6046
Fix build-native -> build-runtime.
jkoritzinsky Feb 10, 2020
c61e6e7
Fix permissions.
jkoritzinsky Feb 11, 2020
2844721
Remove dead MSBuild code.
jkoritzinsky Feb 14, 2020
1ffe902
Factor out python locating targets to make them available to the whol…
jkoritzinsky Feb 14, 2020
3fb6ae6
PR Feedback/simplification.
jkoritzinsky Feb 14, 2020
83dce9d
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Feb 14, 2020
80ea3d9
Merge commit '9a8bce7' into hoist-S.P.CL
jkoritzinsky Feb 20, 2020
9a0f0be
Create a self-contained deps.json for crossgen2 and add it to the pac…
jkoritzinsky Feb 21, 2020
cf1afb6
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Feb 25, 2020
9c2c428
Pass runtimeconfiguration as configuration for crossgen2 deps file ge…
jkoritzinsky Feb 25, 2020
6e58e89
Try specifying rids directly in crossgen2 project to get the restore …
jkoritzinsky Feb 26, 2020
b8d82c0
Run crossgen2 via corerun in R2R.SuperILC.
jkoritzinsky Feb 26, 2020
591b012
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Feb 27, 2020
2ddc248
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Feb 28, 2020
0d48035
Add binlogs to build-runtime.cmd
jkoritzinsky Feb 28, 2020
12ba97b
Combine non build-runtime steps into a single step so we get one binl…
jkoritzinsky Feb 28, 2020
7e5bf10
Add reference to issue describing new workflow.
jkoritzinsky Feb 28, 2020
b9335e8
Quote python path
jkoritzinsky Feb 29, 2020
9f0f4d7
Set arch default.
jkoritzinsky Feb 29, 2020
cc6ddce
PR Feedback and clean up crossgen-corelib's argument list.
jkoritzinsky Mar 2, 2020
e890a9e
Fix subset name matching to work when one subset name is a substring …
jkoritzinsky Mar 2, 2020
6184bda
Pass the official build id as an msbuild arg at all times.
jkoritzinsky Mar 2, 2020
4e7714d
PR Feedback.
jkoritzinsky Mar 2, 2020
8819069
Fix default subset list construction.
jkoritzinsky Mar 2, 2020
f0a9d2a
Add deprecation warnings at beginning and end of build.cmd and build.sh.
jkoritzinsky Mar 2, 2020
1da936d
Setup dirs in crossgen-corelib.sh
jkoritzinsky Mar 2, 2020
711e38d
Move enforcepgo argument to before the official build arg so that it …
jkoritzinsky Mar 3, 2020
a6b4ac4
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Mar 3, 2020
8b7982d
Add cross-os DAC builds as subsets.
jkoritzinsky Mar 3, 2020
6f6ec99
Update script usage docs.
jkoritzinsky Mar 3, 2020
ba67a5a
Skip the cross-os dac on x86.
jkoritzinsky Mar 3, 2020
330a860
Merge branch 'master' of https://github.com/dotnet/runtime into hoist…
jkoritzinsky Mar 3, 2020
e3ba26d
Build windows->linux cross dac on PR and CI.
jkoritzinsky Mar 3, 2020
87e3d0a
Don't build the cross-OS linux dac on Windows x86.
jkoritzinsky Mar 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 32 additions & 3 deletions eng/Subsets.props
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<DefaultInstallerSubsets>corehost-managed-depproj-pkgproj-bundle-installers-test</DefaultInstallerSubsets>
<!-- TODO: Split into multiple sets. -->
<DefaultLibrariesSubsets>all</DefaultLibrariesSubsets>
<DefaultCoreClrSubsets>all</DefaultCoreClrSubsets>
<DefaultCoreClrSubsets>runtime-corelib-tools-packages</DefaultCoreClrSubsets>
<DefaultMonoSubsets>all</DefaultMonoSubsets>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does the mono default include coreclr but not the other way around?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mono's default doesn't include CoreCLR. Mono's default includes the "all" subset in the Mono subset category. Same way that Libraries' default includes the "all" subset in the Libraries subset category.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems confusing to name it "all" then not have all the items in it. Is there some subtle, or less subtle, context I'm missing here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The “all” refers to “all projects that are in this subset category” not “all projects in dotnet/runtime”.


<_subsetCategory Condition="'$(SubsetCategory)' != ''">$(SubsetCategory.ToLowerInvariant())</_subsetCategory>
Expand All @@ -81,7 +81,10 @@
<SubsetName Include="All" Category="Libraries" Description="The .NET libraries comprising the shared framework." />

<!-- CoreClr -->
<SubsetName Include="All" Category="CoreClr" Description="The .NET runtime." />
<SubsetName Include="Runtime" Category="CoreClr" Description="The CoreCLR .NET runtime." />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does Runtime mean CoreCLR instead of say Mono?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the Runtime subset within the CoreCLR subset category. Mono could change their build to have a Runtime subset and then running ./build -subset runtime would build both native runtimes.

<SubsetName Include="CoreLib" Category="CoreClr" Description="The managed System.Private.CoreLib library for CoreCLR." />
<SubsetName Include="Tools" Category="CoreClr" Description="Managed tools that support CoreCLR development and testing." />
<SubsetName Include="Packages" Category="CoreClr" Description="The projects that produce NuGet packages for the CoreCLR runtime, crossgen, and IL tools." />

<!-- Mono -->
<SubsetName Include="All" Category="Mono" Description="The Mono .NET runtime." />
Expand All @@ -106,6 +109,15 @@
<CoreClrProjectToBuild>
<AdditionalProperties>Configuration=$(CoreCLRConfiguration)</AdditionalProperties>
</CoreClrProjectToBuild>
<CoreClrCoreLibProjectToBuild>
<AdditionalProperties>Configuration=$(CoreCLRConfiguration)</AdditionalProperties>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we using $(CoreCLRConfiguration) here instead of say $(RuntimeConfiguration)? Having a configuration per runtime is only useful if say we can have a build where we do Mono Debug, CoreCLR Release. Is that a supported scenario?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is done to match the above lines for CoreClrProjectToBuild to be consistent.

</CoreClrCoreLibProjectToBuild>
<CoreClrManagedToolsProjectToBuild>
<AdditionalProperties>Configuration=$(CoreCLRConfiguration)</AdditionalProperties>
</CoreClrManagedToolsProjectToBuild>
<CoreClrPackagesProjectToBuild>
<AdditionalProperties>Configuration=$(CoreCLRConfiguration)</AdditionalProperties>
</CoreClrPackagesProjectToBuild>
</ItemDefinitionGroup>

<ItemDefinitionGroup Condition="'$(MonoConfiguration)' != ''">
Expand All @@ -121,11 +133,28 @@
</ItemDefinitionGroup>

<!-- CoreClr sets -->
<ItemGroup Condition="$(_subsetCategory.Contains('coreclr')) and $(_subset.Contains('all'))">
<ItemGroup Condition="$(_subsetCategory.Contains('coreclr')) and $(_subset.Contains('corelib'))">
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved
<CoreClrCoreLibProjectToBuild Include="$(CoreClrProjectRoot)src\System.Private.CoreLib\System.Private.CoreLib.csproj" BuildInParallel="false" />
<ProjectToBuild Include="@(CoreClrCoreLibProjectToBuild)" />
</ItemGroup>

<ItemGroup Condition="$(_subsetCategory.Contains('coreclr')) and $(_subset.Contains('runtime'))">
<CoreClrProjectToBuild Include="$(CoreClrProjectRoot)coreclr.proj" BuildInParallel="false" />
<ProjectToBuild Include="@(CoreClrProjectToBuild)" />
</ItemGroup>

<ItemGroup Condition="$(_subsetCategory.Contains('coreclr')) and $(_subset.Contains('tools'))">
<CoreClrManagedToolsProjectToBuild Include="$(CoreClrProjectRoot)src\tools\runincontext\runincontext.csproj" />
<CoreClrManagedToolsProjectToBuild Include="$(CoreClrProjectRoot)src\tools\r2rdump\R2RDump.csproj" />
<CoreClrManagedToolsProjectToBuild Include="$(CoreClrProjectRoot)src\tools\ReadyToRun.SuperIlc\ReadyToRun.SuperIlc.csproj" />
<CoreClrManagedToolsProjectToBuild Include="$(CoreClrProjectRoot)src\tools\crossgen2\crossgen2\crossgen2.csproj" BuildInParallel="false" />
<ProjectToBuild Include="@(CoreClrManagedToolsProjectToBuild)" />
</ItemGroup>

<ItemGroup Condition="$(_subsetCategory.Contains('coreclr')) and $(_subset.Contains('packages'))">
<CoreClrPackagesProjectToBuild Include="$(CoreClrProjectRoot)src\.nuget\packages.builds" BuildInParallel="false" />
<ProjectToBuild Include="@(CoreClrPackagesProjectToBuild)" />
</ItemGroup>
<!-- Mono sets -->
<ItemGroup Condition="$(_subsetCategory.Contains('mono')) and $(_subset.Contains('all'))">
<MonoProjectToBuild Include="$(MonoProjectRoot)mono.proj" BuildInParallel="false" />
Expand Down
6 changes: 5 additions & 1 deletion eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ if ($null -ne $possibleDirToBuild -and $subsetCategory -eq "libraries") {
}
}

$arch = [System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant()
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved

foreach ($argument in $PSBoundParameters.Keys)
{
switch($argument)
Expand All @@ -140,11 +142,13 @@ foreach ($argument in $PSBoundParameters.Keys)
"framework" { $arguments += " /p:TargetGroup=$($PSBoundParameters[$argument].ToLowerInvariant())" }
"os" { $arguments += " /p:OSGroup=$($PSBoundParameters[$argument])" }
"allconfigurations" { $arguments += " /p:BuildAllConfigurations=true" }
"arch" { $arguments += " /p:ArchGroup=$($PSBoundParameters[$argument]) /p:TargetArchitecture=$($PSBoundParameters[$argument])" }
"arch" { $arch = $PSBoundParameters[$argument]; $arguments += " /p:ArchGroup=$($PSBoundParameters[$argument]) /p:TargetArchitecture=$($PSBoundParameters[$argument])" }
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved
"properties" { $arguments += " " + $properties }
default { $arguments += " /p:$argument=$($PSBoundParameters[$argument])" }
}
}

$env:__DistroRid="win-$arch"
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved

Invoke-Expression "& `"$PSScriptRoot/common/build.ps1`" $arguments"
exit $lastExitCode
96 changes: 96 additions & 0 deletions eng/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,104 @@ usage()
echo "Arguments can also be passed in with a single hyphen."
}

initDistroRid()
{
source $scriptroot/native/init-distro-rid.sh

local passedRootfsDir=""
local buildOs="$1"
local buildArch="$2"
local isCrossBuild="$3"
# For RID calculation purposes, say we are always a portable build
local isPortableBuild=1
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved

# Only pass ROOTFS_DIR if __DoCrossArchBuild is specified.
if (( isCrossBuild == 1 )); then
passedRootfsDir=${ROOTFS_DIR}
fi
initDistroRidGlobal ${buildOs} ${buildArch} ${isPortableBuild} ${passedRootfsDir}
}

arguments=''
cmakeargs=''
extraargs=''
build=false
buildtests=false
subsetCategory=''
checkedPossibleDirectoryToBuild=false
crossBuild=0
os=''
arch=''


# Use uname to determine what the OS is.
OSName=$(uname -s)
case "$OSName" in
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved
Darwin)
os=OSX
;;

FreeBSD)
os=FreeBSD
;;

Linux)
os=Linux
;;

NetBSD)
os=NetBSD
;;

OpenBSD)
os=OpenBSD
;;

SunOS)
os=SunOS
;;

*)
echo "Unsupported OS $OSName detected, configuring as if for Linux"
os=Linux
;;
esac

# Use uname to determine what the CPU is.
CPUName=$(uname -p)

# Some Linux platforms report unknown for platform, but the arch for machine.
if [[ "$CPUName" == "unknown" ]]; then
CPUName=$(uname -m)
fi

case "$CPUName" in
aarch64)
arch=arm64
;;

amd64)
arch=x64
;;

armv7l)
arch=arm
;;

i686)
echo "Unsupported CPU $CPUName detected, build might not succeed!"
arch=x86
;;

x86_64)
arch=x64
;;

*)
echo "Unknown CPU $CPUName detected, configuring as if for x64"
arch=x64
;;
esac

# Check if an action is passed in
declare -a actions=("r" "restore" "b" "build" "buildtests" "rebuild" "t" "test" "pack" "sign" "publish" "clean")
Expand All @@ -87,6 +178,7 @@ while [[ $# > 0 ]]; do
shift 2
;;
-arch)
arch=$2
arguments="$arguments /p:ArchGroup=$2 /p:TargetArchitecture=$2"
shift 2
;;
Expand All @@ -101,6 +193,7 @@ while [[ $# > 0 ]]; do
shift 2
;;
-os)
os=$2
arguments="$arguments /p:OSGroup=$2"
shift 2
;;
Expand Down Expand Up @@ -139,6 +232,7 @@ while [[ $# > 0 ]]; do
shift 2
;;
-cross)
crossBuild=1
arguments="$arguments /p:CrossBuild=True"
shift 1
;;
Expand Down Expand Up @@ -185,6 +279,8 @@ if [ ${#actInt[@]} -eq 0 ]; then
arguments="-restore -build $arguments"
fi

initDistroRid $os $arch $crossBuild

# URL-encode space (%20) to avoid quoting issues until the msbuild call in /eng/common/tools.sh.
# In *proj files (XML docs), URL-encoded string are rendered in their decoded form.
cmakeargs="${cmakeargs// /%20}"
Expand Down
6 changes: 5 additions & 1 deletion eng/native/init-distro-rid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ initNonPortableDistroRid()
local buildArch="$2"
local isPortable="$3"
local rootfsDir="$4"
local nonPortableBuildID=""

if [ "$buildOs" = "Linux" ]; then
if [ -e "${rootfsDir}/etc/os-release" ]; then
Expand Down Expand Up @@ -115,7 +116,10 @@ initDistroRidGlobal()
local buildOs="$1"
local buildArch="$2"
local isPortable="$3"
local rootfsDir="$4"
local rootfsDir=""
if [ "$#" -ge 4 ]; then
rootfsDir="$4"
fi

if [ -n "${rootfsDir}" ]; then
# We may have a cross build. Check for the existance of the rootfsDir
Expand Down
24 changes: 18 additions & 6 deletions eng/pipelines/coreclr/templates/build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,13 @@ jobs:
value: true
- name: officialBuildIdArg
value: ''
- name: officialBuildIdArcadeArg
value: ''
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
- name: officialBuildIdArg
jkoritzinsky marked this conversation as resolved.
Show resolved Hide resolved
value: '-officialbuildid=$(Build.BuildNumber)'
- name: officialBuildIdArcadeArg
value: '/p:OfficialBuildId=$(Build.BuildNumber)'
- name: enforcePgoArg
value: ''
# The EnforcePGO script is only supported on Windows and is not supported on arm or arm64.
Expand Down Expand Up @@ -119,13 +123,21 @@ jobs:
parameters:
installDotnet: true

# Build
# Build System.Private.CoreLib
- script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -subsetCategory coreclr -subset corelib $(crossArg) -arch $(archType) -c $(buildConfig) $(officialBuildIdArcadeArg)
displayName: Build System.Private.CoreLib

# Build CoreCLR
- ${{ if ne(parameters.osGroup, 'Windows_NT') }}:
- script: $(coreClrRepoRootDir)build$(scriptExt) $(buildConfig) $(archType) $(crossArg) -ci -skipnuget $(clangArg) $(stripSymbolsArg) $(officialBuildIdArg)
displayName: Build product
- script: $(coreClrRepoRootDir)build$(scriptExt) $(buildConfig) $(archType) $(crossArg) -ci $(clangArg) $(stripSymbolsArg) $(officialBuildIdArg)
displayName: Build CoreCLR Runtime
- ${{ if eq(parameters.osGroup, 'Windows_NT') }}:
- script: set __TestIntermediateDir=int&&$(coreClrRepoRootDir)build$(scriptExt) $(buildConfig) $(archType) -ci -skiptests -skipbuildpackages $(officialBuildIdArg) $(enforcePgoArg)
displayName: Build product
- script: set __TestIntermediateDir=int&&$(coreClrRepoRootDir)build$(scriptExt) $(buildConfig) $(archType) -ci $(officialBuildIdArg) $(enforcePgoArg)
displayName: Build CoreCLR Runtime

# Build managed tools
- script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -subsetCategory coreclr -subset tools $(crossArg) -arch $(archType) -c $(buildConfig) $(officialBuildIdArcadeArg)
displayName: Build managed tools

# Build native test components
- script: $(coreClrRepoRootDir)build-test$(scriptExt) skipmanaged $(buildConfig) $(archType) $(crossArg) $(priorityArg) $(clangArg) skipgeneratelayout
Expand Down Expand Up @@ -176,7 +188,7 @@ jobs:
SecretsFilter: 'dotnetfeed-storage-access-key-1,microsoft-symbol-server-pat,symweb-symbol-server-pat'

# Build packages
- script: $(coreClrRepoRootDir)build-packages$(scriptExt) -BuildArch=$(archType) -BuildType=$(_BuildConfig) $(crossPackagesArg) $(officialBuildIdArg) -ci --configuration $(_BuildConfig)
- script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -subsetCategory coreclr -subset packages $(crossArg) -arch $(archType) -c $(buildConfig) $(officialBuildIdArcadeArg)
displayName: Build packages

# Save packages using the prepare-signed-artifacts format.
Expand Down
6 changes: 1 addition & 5 deletions eng/pipelines/coreclr/templates/xplat-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,10 @@ jobs:

- ${{ if ne(parameters.crossrootfsDir, '') }}:
- name: crossArg
value: 'cross'
- name: crossPackagesArg
value: '-__DoCrossArchBuild=1'
value: '-cross'
- ${{ if eq(parameters.crossrootfsDir, '') }}:
- name: crossArg
value: ''
- name: crossPackagesArg
value: ''

- ${{ each variable in parameters.variables }}:
- ${{insert}}: ${{ variable }}
Expand Down
2 changes: 0 additions & 2 deletions src/coreclr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,5 +189,3 @@ endif (CLR_CMAKE_HOST_UNIX)
# Add Product Directory
#------------------------------
add_subdirectory(src)

include(definitionsconsistencycheck.cmake)
61 changes: 0 additions & 61 deletions src/coreclr/build-packages.cmd

This file was deleted.

Loading