summaryrefslogtreecommitdiff
path: root/build.cmd
diff options
context:
space:
mode:
authorDan Moseley <danmose@microsoft.com>2018-11-16 07:14:11 -0800
committerStephen Toub <stoub@microsoft.com>2018-11-16 10:14:11 -0500
commit15c6593db2e28b4c2d2d72aaa58c65dcb12cfa9b (patch)
tree62082731cd1a14bcd63d8fb828b6fd2ef67497cd /build.cmd
parent2fe48b4e38ec2b2174561cee3928b44197208eb1 (diff)
downloadcoreclr-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.cmd9
1 files changed, 7 insertions, 2 deletions
diff --git a/build.cmd b/build.cmd
index 75afd3ee5c..781ed9fbcf 100644
--- a/build.cmd
+++ b/build.cmd
@@ -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