From 8098ff0616af693dd98d935794340d99b9f21aac Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 25 Jan 2023 21:16:20 +0100 Subject: [PATCH] tools: Avoid rebuilding libc and friends every single time We do this by preserving timestamps when copying headers so CMake doesn't think they have changed. --- tools/install-headers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/install-headers.sh b/tools/install-headers.sh index c851192f..324ce7ab 100755 --- a/tools/install-headers.sh +++ b/tools/install-headers.sh @@ -9,5 +9,5 @@ mkdir -p $LUNA_BASE mkdir -p $LUNA_BASE/usr/include mkdir -p $LUNA_BASE/usr/include/luna -cp -RT libc/include/ $LUNA_BASE/usr/include -cp -RT luna/include/luna/ $LUNA_BASE/usr/include/luna +cp --preserve=timestamps -RT libc/include/ $LUNA_BASE/usr/include +cp --preserve=timestamps -RT luna/include/luna/ $LUNA_BASE/usr/include/luna