summaryrefslogtreecommitdiffstats
path: root/win32_build.sh
diff options
context:
space:
mode:
authorLucian Petrut <lpetrut@cloudbasesolutions.com>2021-05-07 09:18:39 +0200
committerLucian Petrut <lpetrut@cloudbasesolutions.com>2021-05-07 09:20:05 +0200
commitc6404e15cb2cde046224433403349e7437f3044e (patch)
treebbda14ea2f09df229b3d7d5717c0a728f4339acc /win32_build.sh
parentwin32*.sh: bump boost version to 1.75 (diff)
downloadceph-c6404e15cb2cde046224433403349e7437f3044e.tar.xz
ceph-c6404e15cb2cde046224433403349e7437f3044e.zip
win32*.sh: ensure that the build dir exists
The Windows build scripts try to use the build dir before actually creating it. We'll have to move up the "mkdir" command a few lines. Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
Diffstat (limited to 'win32_build.sh')
-rwxr-xr-xwin32_build.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32_build.sh b/win32_build.sh
index 4e887cef30b..9e88df93f81 100755
--- a/win32_build.sh
+++ b/win32_build.sh
@@ -111,15 +111,15 @@ if [[ -z $SKIP_BINDIR_CLEAN ]]; then
rm -rf $binDir
fi
+mkdir -p $BUILD_DIR
+cd $BUILD_DIR
+
if [[ ! -f ${depsToolsetDir}/completed ]]; then
echo "Preparing dependencies: $DEPS_DIR. Log: ${BUILD_DIR}/build_deps.log"
NUM_WORKERS=$NUM_WORKERS DEPS_DIR=$DEPS_DIR OS="$OS"\
"$SCRIPT_DIR/win32_deps_build.sh" | tee "${BUILD_DIR}/build_deps.log"
fi
-mkdir -p $BUILD_DIR
-cd $BUILD_DIR
-
# Due to distribution specific mingw settings, the mingw.cmake file
# must be built prior to running cmake.
MINGW_CMAKE_FILE="$BUILD_DIR/mingw32.cmake"