From 4c2ad700663fdab7b3778a02734b44495928f603 Mon Sep 17 00:00:00 2001 From: MacDue Date: Sat, 6 May 2023 15:09:15 +0100 Subject: [PATCH] Toolchain: Use ninja to bootstrap CMake For some reason (for me) on Ubuntu 22.04 the standard make generator fails: --------------------------------------------- CMake has bootstrapped. Now run gmake. make: make: Permission denied make: *** [Makefile:166: all] Error 127 This seems to be because Source/kwsys/CMakeFiles/cmsys.dir/depend is missing or not generated. Using ninja works fine though, and as it is already the default for Serenity proper, it seems reasonable to switch it here too. --- Toolchain/BuildCMake.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Toolchain/BuildCMake.sh b/Toolchain/BuildCMake.sh index ba832b05a2..4371266010 100755 --- a/Toolchain/BuildCMake.sh +++ b/Toolchain/BuildCMake.sh @@ -77,7 +77,7 @@ mkdir -p "${PREFIX_DIR}" mkdir -p "${BUILD_DIR}" pushd "${BUILD_DIR}" - "${TARBALLS_DIR}"/cmake-"${CMAKE_VERSION}"/bootstrap --prefix="${PREFIX_DIR}" --parallel="${MAKEJOBS}" - make -j "${MAKEJOBS}" - make install + "${TARBALLS_DIR}"/cmake-"${CMAKE_VERSION}"/bootstrap --generator="Ninja" --prefix="${PREFIX_DIR}" --parallel="${MAKEJOBS}" + ninja -j "${MAKEJOBS}" + ninja install popd