Allow syncing the source to the pinned version by setting SYNC=1 when running the build scripts

This should allow updating an existing build to the desired, pinned
version.
This commit is contained in:
Martin Storsjö committed 2018-01-15 10:31:50 +02:00
1 parent 266c2fae6d
commit 8c15cb4544
4 files changed
+41 -17

No files matched your search

+7 -3
View File
@@ -15,9 +15,7 @@ export PATH=$PREFIX/bin:$PATH
if [ ! -d compiler-rt ]; then
git clone -b master https://github.com/llvm-mirror/compiler-rt.git
cd compiler-rt
git checkout 1d871d6cd3fed01cd50dd63e743bd2ea6e65eab6
cd ..
CHECKOUT=1
fi
# Add a symlink for i386 -> i686; we normally name the toolchain
@@ -26,6 +24,12 @@ fi
ln -sf i686-w64-mingw32 $PREFIX/i386-w64-mingw32
cd compiler-rt
if [ -n "$SYNC" ] || [ -n "$CHECKOUT" ]; then
[ -z "$SYNC" ] || git fetch
git checkout 1d871d6cd3fed01cd50dd63e743bd2ea6e65eab6
fi
for arch in $ARCHS; do
buildarchname=$arch
libarchname=$arch