Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Lorensson <lateralusx.github@gmail.com>2019-11-06 18:51:14 +0300
committerGitHub <noreply@github.com>2019-11-06 18:51:14 +0300
commit1a6c092019877dacd33d57c104ac4cdf8933fd9b (patch)
tree951e818447610afea6d6b2c2826a5fb738fbe09a /msvc/build-external-btls.bat
parent965beadc1e8d1ade051726db17f819451fc0dff9 (diff)
Explicit update/init only LLVM BTLS repro on external MSVC build. (#17691)
Reduce the scope of git submodule update --init to only LLVM and/or BTLS repositories when building external MSVC dependencies.
Diffstat (limited to 'msvc/build-external-btls.bat')
-rwxr-xr-xmsvc/build-external-btls.bat24
1 files changed, 8 insertions, 16 deletions
diff --git a/msvc/build-external-btls.bat b/msvc/build-external-btls.bat
index 95637d4db8b..bd85f76ce39 100755
--- a/msvc/build-external-btls.bat
+++ b/msvc/build-external-btls.bat
@@ -110,16 +110,6 @@ if "%FORCE_MSBUILD%" == "" (
set FORCE_MSBUILD=false
)
-if not exist "%MONO_BTLS_DIR%" (
- echo Could not find "%MONO_BTLS_DIR%".
- goto ON_ERROR
-)
-
-if not exist "%BTLS_DIR%" (
- echo Could not find "%BTLS_DIR%".
- goto ON_ERROR
-)
-
set BTLS_CFLAGS=%VS_CFLAGS%
set BTLS_ARCH=x86_64
if /i "%VS_PLATFORM%" == "win32" (
@@ -245,17 +235,19 @@ if "%GIT%" == "" (
)
:: Make sure boringssl submodule is up to date.
-pushd
-cd "%BTLS_DIR%"
-"%GIT%" submodule update --init
+"%GIT%" submodule update --init -- "%BTLS_DIR%"
if not ERRORLEVEL == 0 (
- "%GIT%" submodule init
- "%GIT%" submodule update
+ "%GIT%" submodule init -- "%BTLS_DIR%"
+ "%GIT%" submodule update -- "%BTLS_DIR%"
if not ERRORLEVEL == 0 (
echo Git boringssl submodules failed to updated. You may experience compilation problems if some submodules are out of date.
)
)
-popd
+
+if not exist "%BTLS_DIR%" (
+ echo Could not find "%BTLS_DIR%".
+ goto ON_ERROR
+)
if not exist "%BTLS_BUILD_DIR%" (
mkdir "%BTLS_BUILD_DIR%"