Use "install -C" in mingw-w64-headers

This avoids touching the target file if the new file to install
matches the previous one. This avoids rebuilding other files later
needlessly, when upgrading an installation.
This commit is contained in:
Martin Storsjö committed 2018-01-15 10:31:50 +02:00
1 parent 8c15cb4544
commit 41370320a6
1 file changed
+9 -14
+9 -14
View File
@@ -24,21 +24,16 @@ if [ -n "$SYNC" ] || [ -n "$CHECKOUT" ]; then
git checkout 66fab9591c250ade399e9fe91ceda239a735649c git checkout 66fab9591c250ade399e9fe91ceda239a735649c
fi fi
if [ -z "$NOHEADERS" ]; then cd mingw-w64-headers
# TODO: Only install if they have changed? Otherwise this forces the CRT for arch in $ARCHS; do
# to be rebuilt even if headers haven't changed. Currently set $NOHEADERS mkdir -p build-$arch
# to skip this part. cd build-$arch
cd mingw-w64-headers ../configure --host=$arch-w64-mingw32 --prefix=$PREFIX/$arch-w64-mingw32 \
for arch in $ARCHS; do --enable-secure-api --enable-idl --with-default-win32-winnt=0x600 --with-default-msvcrt=ucrtbase INSTALL="install -C"
mkdir -p build-$arch make install
cd build-$arch
../configure --host=$arch-w64-mingw32 --prefix=$PREFIX/$arch-w64-mingw32 \
--enable-secure-api --enable-idl --with-default-win32-winnt=0x600 --with-default-msvcrt=ucrtbase
make install
cd ..
done
cd .. cd ..
fi done
cd ..
cd mingw-w64-crt cd mingw-w64-crt
for arch in $ARCHS; do for arch in $ARCHS; do