Skip to content

Commit e804424

Browse files
Fix cleanup condiction and remove early exit
1 parent 966681c commit e804424

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

utils/webassembly/build-toolchain.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ $SOURCE_PATH/swift/utils/build-script \
5555
# For some reason passing `--reconfigure` to `build-script` won't do this.
5656
rm -rf $SOURCE_PATH/build/Ninja-ReleaseAssert/swift-*
5757

58-
exit 0
59-
6058
# build the cross-compilled toolchain
6159
$SOURCE_PATH/swift/utils/build-script \
6260
--preset=$TARGET_PRESET \
@@ -88,7 +86,7 @@ $UTILS_PATH/build-foundation.sh $HOST_TOOLCHAIN_SDK
8886
$UTILS_PATH/build-xctest.sh $HOST_TOOLCHAIN_SDK
8987

9088
# Cleanup build directory on CI
91-
if [[ -z "${CI}" ]]; then
89+
if [[ -n "${CI}" ]]; then
9290
rm -rf $SOURCE_PATH/build/Ninja-ReleaseAssert/
9391
fi
9492

utils/webassembly/ci.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ FLAGS="--release $CACHE_FLAGS --verbose"
2727

2828
$BUILD_SCRIPT $FLAGS
2929

30-
exit 0
31-
3230
if [[ "$(uname)" == "Darwin" ]]; then
3331
# workaround: host target test directory is necessary to use run-test
3432
mkdir -p $BUILD_DIR/swift-macosx-x86_64/test-macosx-x86_64

0 commit comments

Comments
 (0)