From 82feeed693031d19ff8f4e08d3c6f45c7f7ef36e Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 14 Sep 2024 19:11:51 +0900 Subject: [PATCH] Build mold binary with mold --- dist.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dist.sh b/dist.sh index 6d2d698a57..1137feaadd 100755 --- a/dist.sh +++ b/dist.sh @@ -162,6 +162,8 @@ mkdir /build cd /build cmake -DCMAKE_BUILD_TYPE=Release -DMOLD_MOSTLY_STATIC=On /mold cmake --build . -j\$(nproc) +mv mold mold2 +./mold2 -run cmake --build . -j\$(nproc) ctest -j\$(nproc) cmake --install . --prefix $dest --strip find $dest -print | xargs touch --no-dereference --date='$timestamp'