set FORCE_MSBUILD=false\r
)\r
\r
-if not exist "%MONO_BTLS_DIR%" (\r
- echo Could not find "%MONO_BTLS_DIR%".\r
- goto ON_ERROR\r
-)\r
-\r
-if not exist "%BTLS_DIR%" (\r
- echo Could not find "%BTLS_DIR%".\r
- goto ON_ERROR\r
-)\r
-\r
set BTLS_CFLAGS=%VS_CFLAGS%\r
set BTLS_ARCH=x86_64\r
if /i "%VS_PLATFORM%" == "win32" (\r
)\r
\r
:: Make sure boringssl submodule is up to date.\r
-pushd\r
-cd "%BTLS_DIR%"\r
-"%GIT%" submodule update --init\r
+"%GIT%" submodule update --init -- "%BTLS_DIR%"\r
if not ERRORLEVEL == 0 (\r
- "%GIT%" submodule init\r
- "%GIT%" submodule update\r
+ "%GIT%" submodule init -- "%BTLS_DIR%"\r
+ "%GIT%" submodule update -- "%BTLS_DIR%"\r
if not ERRORLEVEL == 0 (\r
echo Git boringssl submodules failed to updated. You may experience compilation problems if some submodules are out of date.\r
)\r
)\r
-popd\r
+\r
+if not exist "%BTLS_DIR%" (\r
+ echo Could not find "%BTLS_DIR%".\r
+ goto ON_ERROR\r
+)\r
\r
if not exist "%BTLS_BUILD_DIR%" (\r
mkdir "%BTLS_BUILD_DIR%"\r
set FORCE_MSBUILD=false\r
)\r
\r
-if not exist "%LLVM_DIR%" (\r
- echo Could not find "%LLVM_DIR%".\r
- goto ON_ERROR\r
-)\r
-\r
set LLVM_CFLAGS=%VS_CFLAGS%\r
set LLVM_ARCH=x86_64\r
if /i "%VS_PLATFORM%" == "win32" (\r
)\r
\r
:: Make sure llvm submodule is up to date.\r
-pushd\r
-cd "%LLVM_DIR%"\r
-"%GIT%" submodule update --init\r
+"%GIT%" submodule update --init -- "%LLVM_DIR%"\r
if not ERRORLEVEL == 0 (\r
- "%GIT%" submodule init\r
- "%GIT%" submodule update\r
+ "%GIT%" submodule init -- "%LLVM_DIR%"\r
+ "%GIT%" submodule update -- "%LLVM_DIR%"\r
if not ERRORLEVEL == 0 (\r
echo Git llvm submodules failed to updated. You may experience compilation problems if some submodules are out of date.\r
)\r
)\r
-popd\r
+\r
+if not exist "%LLVM_DIR%" (\r
+ echo Could not find "%LLVM_DIR%".\r
+ goto ON_ERROR\r
+)\r
\r
if not exist "%LLVM_BUILD_DIR%" (\r
mkdir "%LLVM_BUILD_DIR%"\r