File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1919LLVM_ARGS=" "
2020MINGW_ARGS=" "
2121CFGUARD_ARGS=" --enable-cfguard"
22+ HOST_ARGS=" "
2223
2324while [ $# -gt 0 ]; do
2425 case " $1 " in
@@ -57,6 +58,9 @@ while [ $# -gt 0 ]; do
5758 --no-runtimes)
5859 NO_RUNTIMES=1
5960 ;;
61+ --host=* )
62+ HOST_ARGS=" $HOST_ARGS $1 "
63+ ;;
6064 * )
6165 if [ -n " $PREFIX " ]; then
6266 echo Unrecognized parameter $1
@@ -79,15 +83,15 @@ for dep in git cmake; do
7983 fi
8084done
8185
82- ./build-llvm.sh $PREFIX $LLVM_ARGS
86+ ./build-llvm.sh $PREFIX $LLVM_ARGS $HOST_ARGS
8387if [ -z " $NO_LLDB " ] && [ -z " $NO_LLDB_MI " ]; then
84- ./build-lldb-mi.sh $PREFIX
88+ ./build-lldb-mi.sh $PREFIX $HOST_ARGS
8589fi
8690if [ -z " $FULL_LLVM " ]; then
8791 ./strip-llvm.sh $PREFIX
8892fi
89- ./install-wrappers.sh $PREFIX
90- ./build-mingw-w64-tools.sh $PREFIX
93+ ./install-wrappers.sh $PREFIX $HOST_ARGS
94+ ./build-mingw-w64-tools.sh $PREFIX $HOST_ARGS
9195if [ -n " $NO_RUNTIMES " ]; then
9296 exit 0
9397fi
You can’t perform that action at this time.
0 commit comments