diff options
author | Dan Moseley <danmose@microsoft.com> | 2018-11-16 07:14:11 -0800 |
---|---|---|
committer | Stephen Toub <stoub@microsoft.com> | 2018-11-16 10:14:11 -0500 |
commit | 15c6593db2e28b4c2d2d72aaa58c65dcb12cfa9b (patch) | |
tree | 62082731cd1a14bcd63d8fb828b6fd2ef67497cd /build.cmd | |
parent | 2fe48b4e38ec2b2174561cee3928b44197208eb1 (diff) | |
download | coreclr-15c6593db2e28b4c2d2d72aaa58c65dcb12cfa9b.tar.gz coreclr-15c6593db2e28b4c2d2d72aaa58c65dcb12cfa9b.tar.bz2 coreclr-15c6593db2e28b4c2d2d72aaa58c65dcb12cfa9b.zip |
Eliminate CMAKE dependency when not required (#21040)
Diffstat (limited to 'build.cmd')
-rw-r--r-- | build.cmd | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -320,8 +320,13 @@ REM Set the remaining variables based upon the determined build configuration echo %__MsgPrefix%Checking prerequisites -REM Eval the output from probe-win1.ps1 -for /f "delims=" %%a in ('powershell -NoProfile -ExecutionPolicy ByPass "& ""%__SourceDir%\pal\tools\probe-win.ps1"""') do %%a +set __CMakeNeeded=1 +if %__BuildNative%==0 if %__BuildNativeCoreLib%==0 if %__BuildTests%==0 set __CMakeNeeded=0 +if %__CMakeNeeded%==1 ( + REM Eval the output from set-cmake-path.ps1 + for /f "delims=" %%a in ('powershell -NoProfile -ExecutionPolicy ByPass "& ""%__SourceDir%\pal\tools\set-cmake-path.ps1"""') do %%a + REM echo Using CMake from %CMakePath% +) REM NumberOfCores is an WMI property providing number of physical cores on machine REM processor(s). It is used to set optimal level of CL parallelism during native build step |