diff options
author | Michelle McDaniel <michelm@microsoft.com> | 2015-10-14 16:55:47 -0700 |
---|---|---|
committer | Michelle McDaniel <michelm@microsoft.com> | 2015-10-15 08:41:32 -0700 |
commit | 98189891801fd4fadfc5d510a514f3e0f90fec77 (patch) | |
tree | 97cbee538fe53d7bd3e82ab74e4f2c04cb812668 /build.cmd | |
parent | 06579986abb889d2a509be7e2c6370b4fa363fd6 (diff) | |
download | coreclr-98189891801fd4fadfc5d510a514f3e0f90fec77.tar.gz coreclr-98189891801fd4fadfc5d510a514f3e0f90fec77.tar.bz2 coreclr-98189891801fd4fadfc5d510a514f3e0f90fec77.zip |
Skip Crossgen of mscorlib for x86
x86 is currently cannot crossgen mscorlib, but we want to get a build in
the lab so that we make sure we do not break the x86 build of coreclr when
we make changes. This change defaults to skipping crossgen for x86 unless
docrossgen is passed to build.cmd.
Diffstat (limited to 'build.cmd')
-rw-r--r-- | build.cmd | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -23,6 +23,7 @@ set "__RootBinDir=%__ProjectDir%\bin" set "__LogsDir=%__RootBinDir%\Logs" set __MSBCleanBuildArgs= set __SkipTestBuild= +set __DoCrossgen= :Arg_Loop if "%1" == "" goto ArgsDone @@ -44,6 +45,7 @@ if /i "%1" == "windowsmscorlib" (set __MscorlibOnly=1&set __BuildOS=Windows_NT&s if /i "%1" == "vs2013" (set __VSVersion=%1&shift&goto Arg_Loop) if /i "%1" == "vs2015" (set __VSVersion=%1&shift&goto Arg_Loop) if /i "%1" == "skiptestbuild" (set __SkipTestBuild=1&shift&goto Arg_Loop) +if /i "%1" == "docrossgen" (set __DoCrossgen=1&shift&goto Arg_Loop) echo Invalid commandline argument: %1 goto Usage @@ -205,6 +207,13 @@ echo MScorlib build failed. Refer !__MScorlibBuildLog! for details. exit /b 1 :CrossGenMscorlib +if /i "%__BuildArch%" == "x86" ( + if not defined __DoCrossgen ( + echo Skipping Crossgen + goto PerformTestBuild + ) +) + echo Generating native image of mscorlib for %__BuildOS%.%__BuildArch%.%__BuildType% echo. set "__CrossGenMScorlibLog=%__LogsDir%\CrossgenMScorlib_%__BuildOS%__%__BuildArch%__%__BuildType%.log" |