File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ function usage() {
2929 echo " --distcc"
3030 echo " Build with distcc to speed up the toolchain build"
3131 echo " "
32+ echo " --preset-file"
33+ echo " load build-script presets from the specified file"
34+ echo " "
35+ echo " --preset-prefix"
36+ echo " Customize the preset invoked by prepending a prefix"
37+ echo " "
3238}
3339
3440RESULT_DIR=$PWD
@@ -38,6 +44,8 @@ cd "$(dirname $0)/.." || exit
3844DISTCC_FLAG=
3945DRY_RUN=
4046BUNDLE_PREFIX=
47+ PRESET_FILE_FLAGS=
48+ PRESET_PREFIX=
4149case $( uname -s) in
4250 Darwin)
4351 SWIFT_PACKAGE=buildbot_osx_package,no_test
@@ -69,6 +77,14 @@ while [ $# -ne 0 ]; do
6977 ;;
7078 --distcc)
7179 DISTCC_FLAG=" --distcc"
80+ ;;
81+ --preset-file)
82+ shift
83+ PRESET_FILE_FLAGS=" ${PRESET_FILE_FLAGS} --preset-file=$1 "
84+ ;;
85+ --preset-prefix)
86+ shift
87+ PRESET_PREFIX=" $1 "
7288 ;;
7389 -h|--help)
7490 usage
@@ -115,8 +131,9 @@ SWIFT_TOOLCHAIN_DIR="/Library/Developer/Toolchains/${TOOLCHAIN_NAME}.xctoolchain
115131SYMBOLS_PACKAGE=" ${RESULT_DIR} /${SYM_ARCHIVE} "
116132DRY_RUN=" ${DRY_RUN} "
117133DISTCC_FLAG=" ${DISTCC_FLAG} "
134+ PRESET_FILE_FLAGS=" ${PRESET_FILE_FLAGS} "
118135
119- ./utils/build-script ${DRY_RUN} ${DISTCC_FLAG} --preset=" ${SWIFT_PACKAGE} " \
136+ ./utils/build-script ${DRY_RUN} ${DISTCC_FLAG} ${PRESET_FILE_FLAGS} --preset=" ${PRESET_PREFIX} ${SWIFT_PACKAGE}" \
120137 install_destdir=" ${SWIFT_INSTALL_DIR} " \
121138 installable_package=" ${SWIFT_INSTALLABLE_PACKAGE} " \
122139 install_toolchain_dir=" ${SWIFT_TOOLCHAIN_DIR} " \
You can’t perform that action at this time.
0 commit comments