File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ function usage() {
26
26
echo " -t --test"
27
27
echo " Run tests."
28
28
echo " "
29
+ echo " -a --no-assert"
30
+ echo " No assertions"
31
+ echo " "
29
32
echo " --distcc"
30
33
echo " Build with distcc to speed up the toolchain build"
31
34
echo " "
@@ -56,6 +59,7 @@ PRESET_PREFIX=
56
59
NO_TEST=" ,no_test"
57
60
USE_OS_RUNTIME=
58
61
MACOS_ONLY=
62
+ NO_ASSERTIONS=
59
63
60
64
case $( uname -s) in
61
65
Darwin)
@@ -101,6 +105,9 @@ while [ $# -ne 0 ]; do
101
105
;;
102
106
--macos-only)
103
107
MACOS_ONLY=" ,macos_only"
108
+ ;;
109
+ -a|--no-assert)
110
+ NO_ASSERTIONS=" ,no_assertions"
104
111
;;
105
112
-h|--help)
106
113
usage
@@ -152,7 +159,7 @@ SCCACHE_FLAG="${SCCACHE_FLAG}"
152
159
153
160
./utils/build-script ${DRY_RUN} ${DISTCC_FLAG} ${PRESET_FILE_FLAGS} \
154
161
${SCCACHE_FLAG} \
155
- --preset=" ${PRESET_PREFIX}${SWIFT_PACKAGE}${NO_TEST}${USE_OS_RUNTIME}${MACOS_ONLY} " \
162
+ --preset=" ${PRESET_PREFIX}${SWIFT_PACKAGE}${NO_ASSERTIONS}${ NO_TEST}${USE_OS_RUNTIME}${MACOS_ONLY} " \
156
163
install_destdir=" ${SWIFT_INSTALL_DIR} " \
157
164
installable_package=" ${SWIFT_INSTALLABLE_PACKAGE} " \
158
165
install_toolchain_dir=" ${SWIFT_TOOLCHAIN_DIR} " \
You can’t perform that action at this time.
0 commit comments