3 # resolve python-version to use
4 if [ "$PYTHON" == "" ] ; then
5 if ! PYTHON=$(command -v python || command -v python2 || command -v python 2.7)
7 echo "Unable to locate build-dependency python2.x!" 1>&2
12 # validate python-dependency
13 # useful in case of explicitly set option.
14 if ! command -v $PYTHON > /dev/null
16 echo "Unable to locate build-dependency python2.x ($PYTHON)!" 1>&2
22 echo "Usage: $0 [BuildArch] [BuildType] [verbose] [coverage] [cross] [clangx.y] [ninja] [configureonly] [skipconfigure] [skipnative] [skipmscorlib] [skiptests] [stripsymbols] [cmakeargs] [bindir]"
23 echo "BuildArch can be: x64, x86, arm, armel, arm64"
24 echo "BuildType can be: debug, checked, release"
25 echo "coverage - optional argument to enable code coverage build (currently supported only for Linux and OSX)."
26 echo "ninja - target ninja instead of GNU make"
27 echo "clangx.y - optional argument to build using clang version x.y."
28 echo "cross - optional argument to signify cross compilation,"
29 echo " - will use ROOTFS_DIR environment variable if set."
30 echo "crosscomponent - optional argument to build cross-architecture component,"
31 echo " - will use CAC_ROOTFS_DIR environment variable if set."
32 echo "pgoinstrument - generate instrumented code for profile guided optimization enabled binaries."
33 echo "ibcinstrument - generate IBC-tuning-enabled native images when invoking crossgen."
34 echo "configureonly - do not perform any builds; just configure the build."
35 echo "skipconfigure - skip build configuration."
36 echo "skipnative - do not build native components."
37 echo "skipmscorlib - do not build mscorlib.dll."
38 echo "skiptests - skip the tests in the 'tests' subdirectory."
39 echo "skipnuget - skip building nuget packages."
40 echo "skiprestoreoptdata - skip restoring optimization data used by profile-based optimizations."
41 echo "portable - build for portable RID."
42 echo "verbose - optional argument to enable verbose build output."
43 echo "-skiprestore: skip restoring packages ^(default: packages are restored during build^)."
44 echo "-disableoss: Disable Open Source Signing for System.Private.CoreLib."
45 echo "-sequential: force a non-parallel build ^(default is to build in parallel"
46 echo " using all processors^)."
47 echo "-officialbuildid=^<ID^>: specify the official build ID to be used by this build."
48 echo "-Rebuild: passes /t:rebuild to the build projects."
49 echo "stripSymbols - Optional argument to strip native symbols during the build."
50 echo "skipgenerateversion - disable version generation even if MSBuild is supported."
51 echo "cmakeargs - user-settable additional arguments passed to CMake."
52 echo "bindir - output directory (defaults to $__ProjectRoot/bin)"
53 echo "buildstandalonegc - builds the GC in a standalone mode. Can't be used with \"cmakeargs\"."
54 echo "msbuildonunsupportedplatform - build managed binaries even if distro is not officially supported."
60 if [ "$__HostOS" == "Linux" ]; then
61 if [ ! -e /etc/os-release ]; then
62 echo "WARNING: Can not determine runtime id for current distro."
65 source /etc/os-release
66 __HostDistroRid="$ID.$VERSION_ID-$__HostArch"
73 if [ $__CrossBuild == 1 ]; then
74 if [ "$__BuildOS" == "Linux" ]; then
75 if [ ! -e $ROOTFS_DIR/etc/os-release ]; then
76 echo "WARNING: Can not determine runtime id for current distro."
79 source $ROOTFS_DIR/etc/os-release
80 export __DistroRid="$ID.$VERSION_ID-$__BuildArch"
84 export __DistroRid="$__HostDistroRid"
87 # Portable builds target the base RID
88 if [ $__PortableBuild == 1 ]; then
89 if [ "$__BuildOS" == "Linux" ]; then
90 export __DistroRid="linux-$__BuildArch"
91 elif [ "$__BuildOS" == "OSX" ]; then
92 export __DistroRid="osx-$__BuildArch"
99 echo Setting up directories for build
101 mkdir -p "$__RootBinDir"
103 mkdir -p "$__LogsDir"
104 mkdir -p "$__IntermediatesDir"
106 if [ $__CrossBuild == 1 ]; then
107 mkdir -p "$__CrossComponentBinDir"
108 mkdir -p "$__CrossCompIntermediatesDir"
112 # Check the system to ensure the right prereqs are in place
116 echo "Checking prerequisites..."
118 # Check presence of CMake on the path
119 hash cmake 2>/dev/null || { echo >&2 "Please install cmake before running this script"; exit 1; }
122 # Minimum required version of clang is version 3.9 for arm/armel cross build
123 if [[ $__CrossBuild == 1 && ("$__BuildArch" == "arm" || "$__BuildArch" == "armel") ]]; then
124 if ! [[ "$__ClangMajorVersion" -gt "3" || ( $__ClangMajorVersion == 3 && $__ClangMinorVersion == 9 ) ]]; then
125 echo "Please install clang3.9 or latest for arm/armel cross build"; exit 1;
130 hash clang-$__ClangMajorVersion.$__ClangMinorVersion 2>/dev/null || hash clang$__ClangMajorVersion$__ClangMinorVersion 2>/dev/null || hash clang 2>/dev/null || { echo >&2 "Please install clang-$__ClangMajorVersion.$__ClangMinorVersion before running this script"; exit 1; }
136 # if msbuild is not supported, then set __SkipRestoreOptData to 1
137 if [ $__isMSBuildOnNETCoreSupported == 0 ]; then __SkipRestoreOptData=1; fi
138 if [ $__SkipRestoreOptData == 0 ]; then
139 echo "Restoring the OptimizationData package"
140 "$__ProjectRoot/run.sh" sync -optdata
142 echo "Failed to restore the optimization data package."
148 generate_event_logging_sources()
150 if [ $__SkipCoreCLR == 1 ]; then
154 # Event Logging Infrastructure
155 __GeneratedIntermediate="$__IntermediatesDir/Generated"
156 __GeneratedIntermediateEventProvider="$__GeneratedIntermediate/eventprovider_new"
157 if [[ -d "$__GeneratedIntermediateEventProvider" ]]; then
158 rm -rf "$__GeneratedIntermediateEventProvider"
161 if [[ ! -d "$__GeneratedIntermediate/eventprovider" ]]; then
162 mkdir -p "$__GeneratedIntermediate/eventprovider"
165 mkdir -p "$__GeneratedIntermediateEventProvider"
166 if [[ $__SkipCoreCLR == 0 || $__ConfigureOnly == 1 ]]; then
167 echo "Laying out dynamically generated files consumed by the build system "
168 echo "Laying out dynamically generated Event Logging Test files"
169 $PYTHON -B -Wall -Werror "$__ProjectRoot/src/scripts/genXplatEventing.py" --man "$__ProjectRoot/src/vm/ClrEtwAll.man" --exc "$__ProjectRoot/src/vm/ClrEtwAllMeta.lst" --testdir "$__GeneratedIntermediateEventProvider/tests"
171 if [[ $? != 0 ]]; then
175 #determine the logging system
178 echo "Laying out dynamically generated Event Logging Implementation of Lttng"
179 $PYTHON -B -Wall -Werror "$__ProjectRoot/src/scripts/genXplatLttng.py" --man "$__ProjectRoot/src/vm/ClrEtwAll.man" --intermediate "$__GeneratedIntermediateEventProvider"
180 if [[ $? != 0 ]]; then
189 echo "Cleaning the temp folder of dynamically generated Event Logging files"
190 $PYTHON -B -Wall -Werror -c "import sys;sys.path.insert(0,\"$__ProjectRoot/src/scripts\"); from Utilities import *;UpdateDirectory(\"$__GeneratedIntermediate/eventprovider\",\"$__GeneratedIntermediateEventProvider\")"
191 if [[ $? != 0 ]]; then
195 rm -rf "$__GeneratedIntermediateEventProvider"
202 intermediatesForBuild="$3"
203 extraCmakeArguments="$4"
206 if [ $skipCondition == 1 ]; then
207 echo "Skipping $message build."
211 # All set to commence the build
212 echo "Commencing build of $message for $__BuildOS.$__BuildArch.$__BuildType in $intermediatesForBuild"
217 if [ $__UseNinja == 1 ]; then
219 buildFile="build.ninja"
220 if ! buildTool=$(command -v ninja || command -v ninja-build); then
221 echo "Unable to locate ninja!" 1>&2
226 if [ $__SkipConfigure == 0 ]; then
227 # if msbuild is not supported, then set __SkipGenerateVersion to 1
228 if [ $__isMSBuildOnNETCoreSupported == 0 ]; then __SkipGenerateVersion=1; fi
229 # Drop version.cpp file
230 __versionSourceFile="$intermediatesForBuild/version.cpp"
231 if [ $__SkipGenerateVersion == 0 ]; then
233 "$__ProjectRoot/run.sh" build -Project=$__ProjectDir/build.proj -generateHeaderUnix -NativeVersionSourceFile=$__versionSourceFile $__RunArgs $__UnprocessedBuildArgs
235 # Generate the dummy version.cpp, but only if it didn't exist to make sure we don't trigger unnecessary rebuild
236 __versionSourceLine="static char sccsid[] __attribute__((used)) = \"@(#)No version information produced\";"
237 if [ -e $__versionSourceFile ]; then
238 read existingVersionSourceLine < $__versionSourceFile
240 if [ "$__versionSourceLine" != "$existingVersionSourceLine" ]; then
241 echo $__versionSourceLine > $__versionSourceFile
246 pushd "$intermediatesForBuild"
247 # Regenerate the CMake solution
248 echo "Invoking \"$__ProjectRoot/src/pal/tools/gen-buildsys-clang.sh\" \"$__ProjectRoot\" $__ClangMajorVersion $__ClangMinorVersion $platformArch $__BuildType $__CodeCoverage $__IncludeTests $generator $extraCmakeArguments $__cmakeargs"
249 "$__ProjectRoot/src/pal/tools/gen-buildsys-clang.sh" "$__ProjectRoot" $__ClangMajorVersion $__ClangMinorVersion $platformArch $__BuildType $__CodeCoverage $__IncludeTests $generator "$extraCmakeArguments" "$__cmakeargs"
253 if [ ! -f "$intermediatesForBuild/$buildFile" ]; then
254 echo "Failed to generate $message build project!"
258 # Get the number of processors available to the scheduler
259 # Other techniques such as `nproc` only get the number of
260 # processors available to a single process.
261 if [ `uname` = "FreeBSD" ]; then
262 NumProc=`sysctl hw.ncpu | awk '{ print $2+1 }'`
263 elif [ `uname` = "NetBSD" ]; then
264 NumProc=$(($(getconf NPROCESSORS_ONLN)+1))
266 NumProc=$(($(getconf _NPROCESSORS_ONLN)+1))
270 if [ $__ConfigureOnly == 1 ]; then
271 echo "Finish configuration & skipping $message build."
275 # Check that the makefiles were created.
276 pushd "$intermediatesForBuild"
278 echo "Executing $buildTool install -j $NumProc"
280 $buildTool install -j $NumProc
282 echo "Failed to build $message."
289 build_cross_arch_component()
291 __SkipCrossArchBuild=1
293 # check supported cross-architecture components host(__HostArch)/target(__BuildArch) pair
294 if [[ "$__BuildArch" == "arm" && "$__CrossArch" == "x86" ]]; then
295 export CROSSCOMPILE=0
296 __SkipCrossArchBuild=0
298 # building x64-host/arm-target cross-architecture component need to use cross toolchain of x86
299 if [ "$__HostArch" == "x64" ]; then
300 export CROSSCOMPILE=1
307 export __CMakeBinDir="$__CrossComponentBinDir"
308 export CROSSCOMPONENT=1
311 if [ $CROSSCOMPILE == 1 ]; then
312 TARGET_ROOTFS="$ROOTFS_DIR"
313 if [ -n "$CAC_ROOTFS_DIR" ]; then
314 export ROOTFS_DIR="$CAC_ROOTFS_DIR"
316 export ROOTFS_DIR="$__ProjectRoot/cross/rootfs/$__CrossArch"
320 __ExtraCmakeArgs="-DCLR_CMAKE_TARGET_ARCH=$__BuildArch -DCLR_CMAKE_TARGET_OS=$__BuildOS -DCLR_CMAKE_PACKAGES_DIR=$__PackagesDir -DCLR_CMAKE_PGO_INSTRUMENT=$__PgoInstrument -DCLR_CMAKE_OPTDATA_VERSION=$__PgoOptDataVersion"
321 build_native $__SkipCrossArchBuild "$__CrossArch" "$__CrossCompIntermediatesDir" "$__ExtraCmakeArgs" "cross-architecture component"
323 # restore ROOTFS_DIR, CROSSCOMPONENT, and CROSSCOMPILE
324 if [ -n "$TARGET_ROOTFS" ]; then
325 export ROOTFS_DIR="$TARGET_ROOTFS"
327 export CROSSCOMPONENT=
328 export CROSSCOMPILE=1
331 isMSBuildOnNETCoreSupported()
333 # This needs to be updated alongwith corresponding changes to netci.groovy.
334 __isMSBuildOnNETCoreSupported=0
336 if [ "$__HostArch" == "x64" ]; then
337 if [ "$__HostOS" == "Linux" ]; then
338 case "$__HostDistroRid" in
340 __isMSBuildOnNETCoreSupported=1
343 __isMSBuildOnNETCoreSupported=1
346 __isMSBuildOnNETCoreSupported=1
349 __isMSBuildOnNETCoreSupported=1
352 __isMSBuildOnNETCoreSupported=1
355 __isMSBuildOnNETCoreSupported=1
358 __isMSBuildOnNETCoreSupported=1
361 __isMSBuildOnNETCoreSupported=1
364 __isMSBuildOnNETCoreSupported=1
367 __isMSBuildOnNETCoreSupported=1
370 __isMSBuildOnNETCoreSupported=$__msbuildonunsupportedplatform
372 elif [ "$__HostOS" == "OSX" ]; then
373 __isMSBuildOnNETCoreSupported=1
380 if [ $__SkipCoreCLR == 0 -a -e $__BinDir/crossgen ]; then
381 echo "Generating native image for System.Private.CoreLib."
382 $__BinDir/crossgen /Platform_Assemblies_Paths $__BinDir/IL $__IbcTuning /out $__BinDir/System.Private.CoreLib.dll $__BinDir/IL/System.Private.CoreLib.dll
383 if [ $? -ne 0 ]; then
384 echo "Failed to generate native image for System.Private.CoreLib."
388 if [ "$__BuildOS" == "Linux" ]; then
389 echo "Generating symbol file for System.Private.CoreLib."
390 $__BinDir/crossgen /CreatePerfMap $__BinDir $__BinDir/System.Private.CoreLib.dll
391 if [ $? -ne 0 ]; then
392 echo "Failed to generate symbol file for System.Private.CoreLib."
402 if [ $__isMSBuildOnNETCoreSupported == 0 ]; then
403 echo "System.Private.CoreLib.dll build unsupported."
407 if [ $__SkipMSCorLib == 1 ]; then
408 echo "Skipping building System.Private.CoreLib."
412 echo "Commencing build of managed components for $__BuildOS.$__BuildArch.$__BuildType"
416 if [[ "$__IbcTuning" -eq "" ]]; then
417 __ExtraBuildArgs="$__ExtraBuildArgs -OptimizationDataDir=\"$__PackagesDir/optimization.$__BuildOS-$__BuildArch.IBC.CoreCLR/$__IbcOptDataVersion/data/\""
418 __ExtraBuildArgs="$__ExtraBuildArgs -EnableProfileGuidedOptimization=true"
420 $__ProjectRoot/run.sh build -Project=$__ProjectDir/build.proj -MsBuildLog="/flp:Verbosity=normal;LogFile=$__LogsDir/System.Private.CoreLib_$__BuildOS__$__BuildArch__$__BuildType.log" -BuildTarget -__IntermediatesDir=$__IntermediatesDir -__RootBinDir=$__RootBinDir -BuildNugetPackage=false -UseSharedCompilation=false $__RunArgs $__ExtraBuildArgs $__UnprocessedBuildArgs
422 if [ $? -ne 0 ]; then
423 echo "Failed to build managed components."
427 # The cross build generates a crossgen with the target architecture.
428 if [ $__CrossBuild != 1 ]; then
429 # The architecture of host pc must be same architecture with target.
430 if [[ ( "$__HostArch" == "$__BuildArch" ) ]]; then
432 elif [[ ( "$__HostArch" == "x64" ) && ( "$__BuildArch" == "x86" ) ]]; then
434 elif [[ ( "$__HostArch" == "arm64" ) && ( "$__BuildArch" == "arm" ) ]]; then
442 generate_NugetPackages()
444 # We can only generate nuget package if we also support building mscorlib as part of this build.
445 if [ $__isMSBuildOnNETCoreSupported == 0 ]; then
446 echo "Nuget package generation unsupported."
450 # Since we can build mscorlib for this OS, did we build the native components as well?
451 if [ $__SkipCoreCLR == 1 ]; then
452 echo "Unable to generate nuget packages since native components were not built."
456 echo "Generating nuget packages for "$__BuildOS
459 $__ProjectRoot/run.sh build -Project=$__SourceDir/.nuget/packages.builds -MsBuildLog="/flp:Verbosity=normal;LogFile=$__LogsDir/Nuget_$__BuildOS__$__BuildArch__$__BuildType.log" -BuildTarget -__IntermediatesDir=$__IntermediatesDir -__RootBinDir=$__RootBinDir -BuildNugetPackage=false -UseSharedCompilation=false $__RunArgs $__UnprocessedBuildArgs
461 if [ $? -ne 0 ]; then
462 echo "Failed to generate Nuget packages."
467 echo "Commencing CoreCLR Repo build"
469 # Argument types supported by this script:
471 # Build architecture - valid values are: x64, ARM.
472 # Build Type - valid values are: Debug, Checked, Release
474 # Set the default arguments for build
476 # Obtain the location of the bash script to figure out where the root of the repo is.
477 __ProjectRoot="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
479 # Use uname to determine what the CPU is.
481 # Some Linux platforms report unknown for platform, but the arch for machine.
482 if [ "$CPUName" == "unknown" ]; then
488 echo "Unsupported CPU $CPUName detected, build might not succeed!"
499 echo "Unsupported CPU $CPUName detected, build might not succeed!"
510 echo "Unknown CPU $CPUName detected, configuring as if for x64"
516 # Use uname to determine what the OS is.
550 echo "Unsupported OS $OSName detected, configuring as if for Linux"
558 __IncludeTests=Include_Tests
560 # Set the various build properties here so that CMake and MSBuild can pick them up
561 __ProjectDir="$__ProjectRoot"
562 __SourceDir="$__ProjectDir/src"
563 __PackagesDir="$__ProjectDir/packages"
564 __RootBinDir="$__ProjectDir/bin"
565 __UnprocessedBuildArgs=
578 __SkipRestoreOptData=0
580 __ClangMajorVersion=0
581 __ClangMinorVersion=0
582 __NuGetPath="$__PackagesDir/NuGet.exe"
586 __SkipGenerateVersion=0
589 __msbuildonunsupportedplatform=0
590 __PgoOptDataVersion=""
591 __IbcOptDataVersion=""
594 if [ $# -le 0 ]; then
598 lowerI="$(echo $1 | awk '{print tolower($0)}')"
638 __CodeCoverage=Coverage
654 __cmakeargs="$__cmakeargs -DSTRIP_SYMBOLS=true"
658 __ClangMajorVersion=3
659 __ClangMinorVersion=5
663 __ClangMajorVersion=3
664 __ClangMinorVersion=6
668 __ClangMajorVersion=3
669 __ClangMinorVersion=7
673 __ClangMajorVersion=3
674 __ClangMinorVersion=8
678 __ClangMajorVersion=3
679 __ClangMinorVersion=9
683 __ClangMajorVersion=4
684 __ClangMinorVersion=0
696 __IbcTuning="/Tuning"
710 # Use "skipnative" to use the same option name as build.cmd.
715 # Accept "skipcoreclr" for backwards-compatibility.
728 __SkipGenerateVersion=1
732 __SkipRestoreOptData=1
748 __cmakeargs="$__cmakeargs $2"
751 echo "ERROR: 'cmakeargs' requires a non-empty option argument"
759 if [ ! -d $__RootBinDir ]; then
762 __RootBinParent=$(dirname $__RootBinDir)
763 __RootBinName=${__RootBinDir##*/}
764 __RootBinDir="$(cd $__RootBinParent &>/dev/null && printf %s/%s $PWD $__RootBinName)"
767 echo "ERROR: 'bindir' requires a non-empty option argument"
772 __cmakeargs="-DFEATURE_STANDALONE_GC=1"
774 msbuildonunsupportedplatform)
775 __msbuildonunsupportedplatform=1
778 __UnprocessedBuildArgs="$__UnprocessedBuildArgs $1"
785 __RunArgs="-BuildArch=$__BuildArch -BuildType=$__BuildType -BuildOS=$__BuildOS"
787 # Configure environment if we are doing a verbose build
788 if [ $__VerboseBuild == 1 ]; then
790 __RunArgs="$__RunArgs -verbose"
793 # Set default clang version
794 if [[ $__ClangMajorVersion == 0 && $__ClangMinorVersion == 0 ]]; then
795 if [ $__CrossBuild == 1 ]; then
796 if [[ "$__BuildArch" == "arm" || "$__BuildArch" == "armel" ]]; then
797 __ClangMajorVersion=3
798 __ClangMinorVersion=9
800 __ClangMajorVersion=3
801 __ClangMinorVersion=6
804 __ClangMajorVersion=3
805 __ClangMinorVersion=5
809 # Set dependent variables
810 __LogsDir="$__RootBinDir/Logs"
812 # init the host distro name
815 # Set the remaining variables based upon the determined build configuration
816 __BinDir="$__RootBinDir/Product/$__BuildOS.$__BuildArch.$__BuildType"
817 __PackagesBinDir="$__BinDir/.nuget"
818 __ToolsDir="$__RootBinDir/tools"
819 __TestWorkingDir="$__RootBinDir/tests/$__BuildOS.$__BuildArch.$__BuildType"
820 export __IntermediatesDir="$__RootBinDir/obj/$__BuildOS.$__BuildArch.$__BuildType"
821 __TestIntermediatesDir="$__RootBinDir/tests/obj/$__BuildOS.$__BuildArch.$__BuildType"
822 __isMSBuildOnNETCoreSupported=0
823 __CrossComponentBinDir="$__BinDir"
824 __CrossCompIntermediatesDir="$__IntermediatesDir/crossgen"
826 __CrossArch="$__HostArch"
827 if [[ "$__HostArch" == "x64" && "$__BuildArch" == "arm" ]]; then
830 if [ $__CrossBuild == 1 ]; then
831 __CrossComponentBinDir="$__CrossComponentBinDir/$__CrossArch"
833 __CrossgenCoreLibLog="$__LogsDir/CrossgenCoreLib_$__BuildOS.$BuildArch.$__BuildType.log"
834 __CrossgenExe="$__CrossComponentBinDir/crossgen"
836 # Init if MSBuild for .NET Core is supported for this platform
837 isMSBuildOnNETCoreSupported
839 # CI_SPECIFIC - On CI machines, $HOME may not be set. In such a case, create a subfolder and set the variable to set.
840 # This is needed by CLI to function.
841 if [ -z "$HOME" ]; then
842 if [ ! -d "$__ProjectDir/temp_home" ]; then
845 export HOME=$__ProjectDir/temp_home
846 echo "HOME not defined; setting it to $HOME"
849 # Specify path to be set for CMAKE_INSTALL_PREFIX.
850 # This is where all built CoreClr libraries will copied to.
851 export __CMakeBinDir="$__BinDir"
853 # Configure environment if we are doing a cross compile.
854 if [ $__CrossBuild == 1 ]; then
855 export CROSSCOMPILE=1
856 if ! [[ -n "$ROOTFS_DIR" ]]; then
857 export ROOTFS_DIR="$__ProjectRoot/cross/rootfs/$__BuildArch"
861 # Parse the optdata package version from its project.json file
862 optDataProjectJsonPath="$__ProjectRoot/src/.nuget/optdata/project.json"
863 if [ -f $optDataProjectJsonPath ]; then
864 __PgoOptDataVersion=$("$__ProjectRoot/extract-from-json.py" -rf $optDataProjectJsonPath dependencies optimization.PGO.CoreCLR)
865 __IbcOptDataVersion=$("$__ProjectRoot/extract-from-json.py" -rf $optDataProjectJsonPath dependencies optimization.IBC.CoreCLR)
868 # init the target distro name
871 # Make the directories necessary for build if they don't exist
877 # Restore the package containing profile counts for profile-guided optimizations
880 # Generate event logging infrastructure sources
881 generate_event_logging_sources
883 # Build the coreclr (native) components.
884 __ExtraCmakeArgs="-DCLR_CMAKE_TARGET_OS=$__BuildOS -DCLR_CMAKE_PACKAGES_DIR=$__PackagesDir -DCLR_CMAKE_PGO_INSTRUMENT=$__PgoInstrument -DCLR_CMAKE_OPTDATA_VERSION=$__PgoOptDataVersion"
885 build_native $__SkipCoreCLR "$__BuildArch" "$__IntermediatesDir" "$__ExtraCmakeArgs" "CoreCLR component"
887 # Build cross-architecture components
888 if [[ $__CrossBuild == 1 && $__DoCrossArchBuild == 1 ]]; then
889 build_cross_arch_component
892 # Build System.Private.CoreLib.
896 # Generate nuget packages
897 if [ $__SkipNuget != 1 ]; then
898 generate_NugetPackages
904 echo "Repo successfully built."
905 echo "Product binaries are available at $__BinDir"