@@ -50,16 +50,17 @@ DRY_RUN=
50
50
BUNDLE_PREFIX=
51
51
PRESET_FILE_FLAGS=
52
52
PRESET_PREFIX=
53
- PRESET_SUFFIX=
53
+ NO_TEST=" ,no_test"
54
+ USE_OS_RUNTIME=
54
55
55
56
case $( uname -s) in
56
57
Darwin)
57
- SWIFT_PACKAGE=buildbot_osx_package,no_test
58
+ SWIFT_PACKAGE=buildbot_osx_package
58
59
OS_SUFFIX=osx
59
60
BUILD_SUBDIR=buildbot_osx
60
61
;;
61
62
Linux)
62
- SWIFT_PACKAGE=buildbot_linux,no_test
63
+ SWIFT_PACKAGE=buildbot_linux
63
64
OS_SUFFIX=linux
64
65
BUILD_SUBDIR=buildbot_linux
65
66
;;
@@ -77,13 +78,7 @@ while [ $# -ne 0 ]; do
77
78
DRY_RUN=" -n"
78
79
;;
79
80
-t|--test)
80
- if [ " $( uname -s) " == " Linux" ]; then
81
- SWIFT_PACKAGE=buildbot_linux
82
- BUILD_SUBDIR=buildbot_linux
83
- else
84
- SWIFT_PACKAGE=buildbot_osx_package
85
- BUILD_SUBDIR=buildbot_osx
86
- fi
81
+ NO_TEST=
87
82
;;
88
83
--distcc)
89
84
DISTCC_FLAG=" --distcc"
@@ -100,7 +95,7 @@ while [ $# -ne 0 ]; do
100
95
PRESET_PREFIX=" $1 "
101
96
;;
102
97
--use-os-runtime)
103
- PRESET_SUFFIX =" ,use_os_runtime"
98
+ USE_OS_RUNTIME =" ,use_os_runtime"
104
99
;;
105
100
-h|--help)
106
101
usage
@@ -152,7 +147,7 @@ SCCACHE_FLAG="${SCCACHE_FLAG}"
152
147
153
148
./utils/build-script ${DRY_RUN} ${DISTCC_FLAG} ${PRESET_FILE_FLAGS} \
154
149
${SCCACHE_FLAG} \
155
- --preset=" ${PRESET_PREFIX}${SWIFT_PACKAGE}${PRESET_SUFFIX } " \
150
+ --preset=" ${PRESET_PREFIX}${SWIFT_PACKAGE}${NO_TEST}${USE_OS_RUNTIME } " \
156
151
install_destdir=" ${SWIFT_INSTALL_DIR} " \
157
152
installable_package=" ${SWIFT_INSTALLABLE_PACKAGE} " \
158
153
install_toolchain_dir=" ${SWIFT_TOOLCHAIN_DIR} " \
0 commit comments