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() {
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 " "
35
+ echo " --preset-prefix"
36
+ echo " Customize the preset invoked by prepending a prefix"
37
+ echo " "
32
38
}
33
39
34
40
RESULT_DIR=$PWD
@@ -38,6 +44,8 @@ cd "$(dirname $0)/.." || exit
38
44
DISTCC_FLAG=
39
45
DRY_RUN=
40
46
BUNDLE_PREFIX=
47
+ PRESET_FILE_FLAGS=
48
+ PRESET_PREFIX=
41
49
case $( uname -s) in
42
50
Darwin)
43
51
SWIFT_PACKAGE=buildbot_osx_package,no_test
@@ -69,6 +77,14 @@ while [ $# -ne 0 ]; do
69
77
;;
70
78
--distcc)
71
79
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 "
72
88
;;
73
89
-h|--help)
74
90
usage
@@ -115,8 +131,9 @@ SWIFT_TOOLCHAIN_DIR="/Library/Developer/Toolchains/${TOOLCHAIN_NAME}.xctoolchain
115
131
SYMBOLS_PACKAGE=" ${RESULT_DIR} /${SYM_ARCHIVE} "
116
132
DRY_RUN=" ${DRY_RUN} "
117
133
DISTCC_FLAG=" ${DISTCC_FLAG} "
134
+ PRESET_FILE_FLAGS=" ${PRESET_FILE_FLAGS} "
118
135
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}" \
120
137
install_destdir=" ${SWIFT_INSTALL_DIR} " \
121
138
installable_package=" ${SWIFT_INSTALLABLE_PACKAGE} " \
122
139
install_toolchain_dir=" ${SWIFT_TOOLCHAIN_DIR} " \
You can’t perform that action at this time.
0 commit comments