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
+1 -6
+1 -6
View File
@@ -24,21 +24,16 @@ if [ -n "$SYNC" ] || [ -n "$CHECKOUT" ]; then
git checkout 66fab9591c250ade399e9fe91ceda239a735649c git checkout 66fab9591c250ade399e9fe91ceda239a735649c
fi fi
if [ -z "$NOHEADERS" ]; then
# TODO: Only install if they have changed? Otherwise this forces the CRT
# to be rebuilt even if headers haven't changed. Currently set $NOHEADERS
# to skip this part.
cd mingw-w64-headers cd mingw-w64-headers
for arch in $ARCHS; do for arch in $ARCHS; do
mkdir -p build-$arch mkdir -p build-$arch
cd build-$arch cd build-$arch
../configure --host=$arch-w64-mingw32 --prefix=$PREFIX/$arch-w64-mingw32 \ ../configure --host=$arch-w64-mingw32 --prefix=$PREFIX/$arch-w64-mingw32 \
--enable-secure-api --enable-idl --with-default-win32-winnt=0x600 --with-default-msvcrt=ucrtbase --enable-secure-api --enable-idl --with-default-win32-winnt=0x600 --with-default-msvcrt=ucrtbase INSTALL="install -C"
make install make install
cd .. cd ..
done done
cd .. cd ..
fi
cd mingw-w64-crt cd mingw-w64-crt
for arch in $ARCHS; do for arch in $ARCHS; do