Skip to content

Commit

Permalink
win32*.sh: improve win32 dependency check
Browse files Browse the repository at this point in the history
At the moment, we assume that the dependencies have been successfully
built if the "build.deps" directory exists.

For convenience reasons, this change will use a file instead,
signaling that we've finished building the dependencies. This will
allow the build process to be resumed when interrupted.

Signed-off-by: Mike Latimer <[email protected]>
Signed-off-by: Lucian Petrut <[email protected]>
  • Loading branch information
ml8mr authored and petrutlucian94 committed Dec 9, 2020
1 parent 451fe3d commit ae812dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion win32_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ curlInclude="${curlDir}/include"
if [[ -n $CLEAN_BUILD ]]; then
echo "Cleaning up build dir: $BUILD_DIR"
rm -rf $BUILD_DIR
rm -rf $DEPS_DIR
fi

if [[ ! -d $DEPS_DIR ]]; then
if [[ ! -f ${depsToolsetDir}/completed ]]; then
echo "Preparing dependencies: $DEPS_DIR"
NUM_WORKERS=$NUM_WORKERS DEPS_DIR=$DEPS_DIR \
"$SCRIPT_DIR/win32_deps_build.sh"
Expand Down
2 changes: 2 additions & 0 deletions win32_deps_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -331,3 +331,5 @@ EOF

x86_64-w64-mingw32-dlltool -d $winLibDir/mswsock.def \
-l $winLibDir/libmswsock.a

touch $depsToolsetDir/completed

0 comments on commit ae812dc

Please sign in to comment.