summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2017-07-05 07:23:09 (GMT)
committerJonghyun Park <parjong@gmail.com>2017-07-05 07:23:09 (GMT)
commit6193e8b18c29a62d12e36c6d2fbc86ca91f287d1 (patch)
tree47d19c9f1a1a19fd72d7e206499aa500b3510d60 /build.sh
parent17b815123a609a4c326875ff845a8e70aaab278c (diff)
downloadcoreclr-6193e8b18c29a62d12e36c6d2fbc86ca91f287d1.zip
coreclr-6193e8b18c29a62d12e36c6d2fbc86ca91f287d1.tar.gz
coreclr-6193e8b18c29a62d12e36c6d2fbc86ca91f287d1.tar.bz2
Add skipcrossgen option
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 5ebf40a..6ec1ceb 100755
--- a/build.sh
+++ b/build.sh
@@ -39,6 +39,7 @@ usage()
echo "skiptests - skip the tests in the 'tests' subdirectory."
echo "skipnuget - skip building nuget packages."
echo "skiprestoreoptdata - skip restoring optimization data used by profile-based optimizations."
+ echo "skipcrossgen - skip native image generation"
echo "verbose - optional argument to enable verbose build output."
echo "-skiprestore: skip restoring packages ^(default: packages are restored during build^)."
echo "-disableoss: Disable Open Source Signing for System.Private.CoreLib."
@@ -403,6 +404,10 @@ isMSBuildOnNETCoreSupported()
build_CoreLib_ni()
{
+ if [ $__SkipCrossgen == 1 ]; then
+ echo "Skipping generating native image"
+ fi
+
if [ $__SkipCoreCLR == 0 -a -e $__BinDir/crossgen ]; then
echo "Generating native image for System.Private.CoreLib."
$__BinDir/crossgen /Platform_Assemblies_Paths $__BinDir/IL $__IbcTuning /out $__BinDir/System.Private.CoreLib.dll $__BinDir/IL/System.Private.CoreLib.dll
@@ -605,6 +610,7 @@ __SkipNuget=0
__SkipCoreCLR=0
__SkipMSCorLib=0
__SkipRestoreOptData=0
+__SkipCrossgen=0
__CrossBuild=0
__ClangMajorVersion=0
__ClangMinorVersion=0
@@ -777,6 +783,10 @@ while :; do
__SkipRestoreOptData=1
;;
+ skipcrossgen)
+ __SkipCrossgen=1
+ ;;
+
includetests)
;;