Skip to content

Commit

Permalink
win32*.sh: ensure that the build dir exists
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit c6404e1)
  • Loading branch information
petrutlucian94 committed May 10, 2021
1 parent 686c6c2 commit 70e6459
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions win32_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 70e6459

Please sign in to comment.