summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAmy <amycmyu@gmail.com>2018-07-18 12:26:36 -0700
committerGitHub <noreply@github.com>2018-07-18 12:26:36 -0700
commiteb622bef3851f8858db8d365454f1345e270dcd8 (patch)
treed8dffd393e4c39748718037f44ab60c386f096b0 /build.sh
parent8c505071956fdf574a4ad925b0238750ce5e931e (diff)
downloadcoreclr-eb622bef3851f8858db8d365454f1345e270dcd8.tar.gz
coreclr-eb622bef3851f8858db8d365454f1345e270dcd8.tar.bz2
coreclr-eb622bef3851f8858db8d365454f1345e270dcd8.zip
R2RDump - Test infrastructure (#18745)
* Test infrastructure for R2RDump, compare xml and output diff * Add R2RDumpTest to build-tests * Fix errors causing tests to fail * Create XUnitWrapper for R2RDumpTest * Generate readytorun binaries from source code, copy expected xml output files to executable's directory * Test R2RDump through commandline instead of calling R2RDump functions * Fix errors * Prevent duplicate xml tags * Read test xml from string instead of file * Fix test bugs * Call dotnet r2rdump from msbuild * Fix errors * Use right slash for paths in bash * Use different expected xml for different architectures * R2RDumpTests for non-Windows * Add more test cases * Fix errors * Supress warnings, avoid error when parsing x86 images * Add license headers
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 2c7004f3d4..091d6227ca 100755
--- a/build.sh
+++ b/build.sh
@@ -448,6 +448,11 @@ build_CoreLib()
__ExtraBuildArgs="$__ExtraBuildArgs -OptimizationDataDir=\"$__PackagesDir/optimization.$__BuildOS-$__BuildArch.IBC.CoreCLR/$__IbcOptDataVersion/data/\""
__ExtraBuildArgs="$__ExtraBuildArgs -EnableProfileGuidedOptimization=true"
fi
+
+ if [[ "$__BuildManagedTools" -eq "1" ]]; then
+ __ExtraBuildArgs="$__ExtraBuildArgs -BuildManagedTools=true"
+ fi
+
$__ProjectRoot/run.sh build -Project=$__ProjectDir/build.proj -MsBuildEventLogging="/l:BinClashLogger,Tools/Microsoft.DotNet.Build.Tasks.dll;LogFile=binclash.log" -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
if [ $? -ne 0 ]; then
@@ -643,6 +648,7 @@ __PortableBuild=1
__msbuildonunsupportedplatform=0
__PgoOptDataVersion=""
__IbcOptDataVersion=""
+__BuildManagedTools=1
# Get the number of processors available to the scheduler
# Other techniques such as `nproc` only get the number of