File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,16 @@ function usage() {
26
26
echo " -t --test"
27
27
echo " Run tests."
28
28
echo " "
29
+ echo " --distcc"
30
+ echo " Build with distcc to speed up the toolchain build"
31
+ echo " "
29
32
}
30
33
31
34
cd " $( dirname $0 ) /.." || exit
32
35
SRC_DIR=$PWD
33
36
34
37
# Set defaults
38
+ DISTCC_FLAG=
35
39
DRY_RUN=
36
40
BUNDLE_PREFIX=
37
41
case $( uname -s) in
@@ -60,6 +64,9 @@ while [ $# -ne 0 ]; do
60
64
else
61
65
SWIFT_PACKAGE=buildbot_osx_package
62
66
fi
67
+ ;;
68
+ --distcc)
69
+ DISTCC_FLAG=" --distcc"
63
70
;;
64
71
-h|--help)
65
72
usage
@@ -104,8 +111,9 @@ SWIFT_INSTALL_SYMROOT="${SRC_DIR}/swift-nightly-symroot"
104
111
SWIFT_TOOLCHAIN_DIR=" /Library/Developer/Toolchains/${TOOLCHAIN_NAME} .xctoolchain"
105
112
SYMBOLS_PACKAGE=" ${SRC_DIR} /${SYM_ARCHIVE} "
106
113
DRY_RUN=" ${DRY_RUN} "
114
+ DISTCC_FLAG=" ${DISTCC_FLAG} "
107
115
108
- ./utils/build-script ${DRY_RUN} --preset=" ${SWIFT_PACKAGE} " \
116
+ ./utils/build-script ${DRY_RUN} ${DISTCC_FLAG} --preset=" ${SWIFT_PACKAGE} " \
109
117
install_destdir=" ${SWIFT_INSTALL_DIR} " \
110
118
installable_package=" ${SWIFT_INSTALLABLE_PACKAGE} " \
111
119
install_toolchain_dir=" ${SWIFT_TOOLCHAIN_DIR} " \
You can’t perform that action at this time.
0 commit comments