Skip to content

Commit fa40f7a

Browse files
committed
Add a --no-test option to build-toolchain
Builds a toolchain without running tests on macos.
1 parent 82790fa commit fa40f7a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

utils/build-toolchain

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ function usage() {
2828
echo "Run tests."
2929
echo ""
3030
fi
31+
echo "-nt --no-test"
32+
echo "Don't run tests."
33+
echo ""
3134
}
3235

3336
cd "$(dirname $0)/.." || exit
@@ -63,6 +66,13 @@ while [ $# -ne 0 ]; do
6366
echo "--test is not supported on \"$(uname -s)\". See --help"
6467
exit 1
6568
fi
69+
;;
70+
-nt|--no-test)
71+
if [ "$(uname -s)" == "Linux" ]; then
72+
SWIFT_PACKAGE=buildbot_linux,no_test
73+
else
74+
SWIFT_PACKAGE=buildbot_osx_package,no_test
75+
fi
6676
;;
6777
-h|--help)
6878
usage

0 commit comments

Comments
 (0)