]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
win32*.sh: ensure that the build dir exists
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 7 May 2021 07:18:39 +0000 (07:18 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 10 May 2021 13:55:58 +0000 (13:55 +0000)
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>
(cherry picked from commit c6404e15cb2cde046224433403349e7437f3044e)

win32_build.sh

index 4e887cef30b810b4d834b2c945479a2360dad3f7..9e88df93f815e0326a1f1903b58ecb7f2c14984c 100755 (executable)
@@ -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"