]> gitweb.factorcode.org Git - factor.git/commitdiff
build-support/factor.cmd: spruce up "unable to detect cl.exe" message. use "call...
authorJoe Groff <arcata@gmail.com>
Wed, 26 May 2010 03:47:20 +0000 (20:47 -0700)
committerJoe Groff <arcata@gmail.com>
Wed, 26 May 2010 03:47:20 +0000 (20:47 -0700)
build-support/factor.cmd

index da16bceef8869d3c9b8df1dee7824b0f10ab9368..05f1597ace18f545b84dbafee19462330429f3bc 100644 (file)
@@ -1,10 +1,10 @@
 @echo off\r
 if not exist Nmakefile goto wrongdir\r
 \r
-cl 2>&1 | find "x86" >nul\r
+call cl 2>&1 | find "x86" >nul\r
 if not errorlevel 1 goto cl32\r
 \r
-cl 2>&1 | find "x64" >nul\r
+call cl 2>&1 | find "x64" >nul\r
 if not errorlevel 1 goto cl64\r
 \r
 goto nocl\r
@@ -22,8 +22,9 @@ set _bootimage="boot.winnt-x86.64.image"
 goto platformdefined\r
 \r
 :nocl\r
-echo "Unable to detect cl.exe target platform."\r
-goto fail\r
+echo Unable to detect cl.exe target platform.\r
+echo Make sure you're running within the Visual Studio or Windows SDK environment.\r
+goto cleanup\r
 \r
 :platformdefined\r
 \r