From 63d27c61ef95cc232fbacb6b64107bf1fbbcefb3 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 27 Oct 2017 02:07:15 -0700 Subject: [PATCH] Travis (Mac): better handling of dependent library version changes --- 3rdParty/buildMacDependencies.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/3rdParty/buildMacDependencies.sh b/3rdParty/buildMacDependencies.sh index 0397191ed1..56e19d966e 100755 --- a/3rdParty/buildMacDependencies.sh +++ b/3rdParty/buildMacDependencies.sh @@ -116,6 +116,14 @@ download_and_build() { # already built but not for correct architectures so force rebuild doClean="-clean" fi + else + # tell subsequent scripts to build everything from scratch + doClean="-clean" + # delete any FILEFLAGS for other versions of this library built previously + BASENAME="${DIRNAME%-*}" + rm -f "${PREFIX}/${BASENAME}"* + # delete any previous build of this library (may be redundant with -clean) + rm -f "${PREFIX}/lib/${PRODUCTNAME}" fi if [ ! -d ${DIRNAME} ]; then if [ ! -e ${FILENAME} ]; then