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.
This commit is contained in:
MacDue 2023-05-06 15:09:15 +01:00 committed by Jelle Raaijmakers
parent 36c8c1129b
commit 4c2ad70066
Notes: sideshowbarker 2024-07-17 06:51:10 +09:00

View File

@ -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