File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1717set -e
1818
1919if [ $# -lt 3 ]; then
20- echo $0 native prefix arch
20+ echo $0 native prefix arch [--with-python]
2121 exit 1
2222fi
2323NATIVE=" $1 "
@@ -27,7 +27,18 @@ CROSS_ARCH="$3"
2727export PATH=" $NATIVE /bin:$PATH "
2828HOST=$CROSS_ARCH -w64-mingw32
2929
30- ./build-llvm.sh $PREFIX --host=$HOST
30+ if [ " $4 " = " --with-python" ]; then
31+ PYTHON_NATIVE_PREFIX=" $( cd " $( dirname " $0 " ) " && pwd) /python-native"
32+ [ -d " $PYTHON_NATIVE_PREFIX " ] || rm -rf " $PYTHON_NATIVE_PREFIX "
33+ ./build-python.sh $PYTHON_NATIVE_PREFIX
34+ export PATH=" $PYTHON_NATIVE_PREFIX /bin:$PATH "
35+ ./build-python.sh $PREFIX /python --host=$HOST
36+ mkdir -p $PREFIX /bin
37+ cp $PREFIX /python/bin/* .dll $PREFIX /bin
38+ LLVM_WITH_PYTHON=" --with-python"
39+ fi
40+
41+ ./build-llvm.sh $PREFIX --host=$HOST $LLVM_WITH_PYTHON
3142./build-lldb-mi.sh $PREFIX --host=$HOST
3243./strip-llvm.sh $PREFIX --host=$HOST
3344./build-mingw-w64-tools.sh $PREFIX --skip-include-triplet-prefix --host=$HOST
You can’t perform that action at this time.
0 commit comments