File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ function usage() {
29
29
echo " --distcc"
30
30
echo " Build with distcc to speed up the toolchain build"
31
31
echo " "
32
+ echo " --preset-file"
33
+ echo " load build-script presets from the specified file"
34
+ echo " "
32
35
}
33
36
34
37
RESULT_DIR=$PWD
@@ -38,6 +41,7 @@ cd "$(dirname $0)/.." || exit
38
41
DISTCC_FLAG=
39
42
DRY_RUN=
40
43
BUNDLE_PREFIX=
44
+ PRESET_FILE_FLAGS=
41
45
case $( uname -s) in
42
46
Darwin)
43
47
SWIFT_PACKAGE=buildbot_osx_package,no_test
@@ -69,6 +73,10 @@ while [ $# -ne 0 ]; do
69
73
;;
70
74
--distcc)
71
75
DISTCC_FLAG=" --distcc"
76
+ ;;
77
+ --preset-file)
78
+ shift
79
+ PRESET_FILE_FLAGS=" ${PRESET_FILE_FLAGS} --preset-file=$1 "
72
80
;;
73
81
-h|--help)
74
82
usage
@@ -115,8 +123,9 @@ SWIFT_TOOLCHAIN_DIR="/Library/Developer/Toolchains/${TOOLCHAIN_NAME}.xctoolchain
115
123
SYMBOLS_PACKAGE=" ${RESULT_DIR} /${SYM_ARCHIVE} "
116
124
DRY_RUN=" ${DRY_RUN} "
117
125
DISTCC_FLAG=" ${DISTCC_FLAG} "
126
+ PRESET_FILE_FLAGS=" ${PRESET_FILE_FLAGS} "
118
127
119
- ./utils/build-script ${DRY_RUN} ${DISTCC_FLAG} --preset=" ${SWIFT_PACKAGE} " \
128
+ ./utils/build-script ${DRY_RUN} ${DISTCC_FLAG} ${PRESET_FILE_FLAGS} --preset=" ${SWIFT_PACKAGE} " \
120
129
install_destdir=" ${SWIFT_INSTALL_DIR} " \
121
130
installable_package=" ${SWIFT_INSTALLABLE_PACKAGE} " \
122
131
install_toolchain_dir=" ${SWIFT_TOOLCHAIN_DIR} " \
You can’t perform that action at this time.
0 commit comments