Split the building of the toolchain into individual shellscripts

This simplifies building the toolchain outside of docker.
This commit is contained in:
Martin Storsjö committed 2018-01-10 10:24:48 +02:00
1 parent 04323b03a5
commit e56a519fdc
10 files changed
+395 -257

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
set -e
if [ $# -lt 1 ]; then
echo $0 dest
exit 1
fi
PREFIX="$1"
: ${ARCHS:=${TOOLCHAIN_ARCHS-i686 x86_64 armv7 aarch64}}
mkdir -p $PREFIX/bin
cp wrappers/clang-target-wrapper $PREFIX/bin
cd $PREFIX/bin
for arch in $ARCHS; do
for exec in clang clang++; do
ln -sf clang-target-wrapper $arch-w64-mingw32-$exec
done
done