From 1b247a7047546e9eecd36387a121977b53e2ea43 Mon Sep 17 00:00:00 2001 From: Takeru Chuganji Date: Wed, 26 Sep 2018 09:08:36 -0700 Subject: [PATCH] Perform clean by deleting build directory instead (#324) --- scripts/build_framework.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build_framework.sh b/scripts/build_framework.sh index b7534aa27..fcf0271c8 100755 --- a/scripts/build_framework.sh +++ b/scripts/build_framework.sh @@ -87,8 +87,8 @@ progress_message Building Framework. # ----------------------------------------------------------------------------- # Compile binaries # -test -d "$BOLTS_BUILD" \ - || mkdir -p "$BOLTS_BUILD" \ +rm -rf "$BOLTS_BUILD" +mkdir -p "$BOLTS_BUILD" \ || die "Could not create directory $BOLTS_BUILD" test -d "$BOLTS_IOS_BUILD" \ @@ -120,7 +120,7 @@ function xcode_build_target() { -configuration "${2}" \ SYMROOT="$BOLTS_BUILD" \ CURRENT_PROJECT_VERSION="$BOLTS_VERSION_FULL" \ - clean build \ + build \ || die "Xcode build failed for platform: ${1}." }