Speed up run.bat execution
authorDavid Antler <david.a.antler@intel.com>
Tue, 12 Jul 2016 22:26:52 +0000 (15:26 -0700)
committerJon A. Cruz <jon@joncruz.org>
Thu, 14 Jul 2016 20:45:26 +0000 (20:45 +0000)
Running the Visual Studio scripts can take some time, so only execute
them in a "run build" scenario.

Change-Id: I96b05072a133e124161af1c969b4ab3c5cd05aba
Signed-off-by: David Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9335
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
run.bat

diff --git a/run.bat b/run.bat
index 5a97d6f..032c04a 100644 (file)
--- a/run.bat
+++ b/run.bat
@@ -22,7 +22,7 @@ if "!SECOND_ARG!"=="debug" (
   set DEBUG="%ProgramFiles(x86)%\Windows Kits\10\Debuggers\x64\cdb.exe" -2 -c "g" 
 )
 
-IF "%BUILD_MSYS%" == "" (
+IF "%CURRENT_ARG%" == "build" IF "%BUILD_MSYS%" == "" (
   IF NOT "%VS140COMNTOOLS%" == "" (
     CALL "%VS140COMNTOOLS%"vsvars32.bat
   ) ELSE (