Files
llvm-mingw/build-cross-tools.sh
T
Martin Storsjö 3d1b15b01e Make widl default to prefix/include instead of prefix/target/include, for windows toolchains
In these setups, we already install headers into prefix/include, in
order to save diskspace.
2018-10-10 23:33:19 +03:00

22 lines
404 B
Bash
Executable File

#!/bin/sh
set -e
if [ $# -lt 3 ]; then
echo $0 native prefix arch
exit 1
fi
NATIVE="$1"
PREFIX="$2"
CROSS_ARCH="$3"
export PATH=$NATIVE/bin:$PATH
export EXEEXT=.exe
export HOST=$CROSS_ARCH-w64-mingw32
./build-llvm.sh $PREFIX
./strip-llvm.sh $PREFIX
./build-mingw-w64-widl.sh $PREFIX --skip-triplet-prefix
./install-wrappers.sh $PREFIX
./prepare-cross-toolchain.sh $NATIVE $PREFIX $CROSS_ARCH