mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
Toolchain: Support building the toolchain with Ninja (#2504)
This change allows users to use CMAKE_GENERATOR=Ninja ./BuildIt.sh BuildIt.sh assumes the default cmake generator is Make. However, the user may specify CMAKE_GENERATOR=Ninja, for example, to set the default generator. Therefore, instead of calling make to build the LibC target we should call cmake --build to use the correct generated files.
This commit is contained in:
parent
7675812efd
commit
1a56fe714c
Notes:
sideshowbarker
2024-07-19 05:49:29 +09:00
Author: https://github.com/predmond Commit: https://github.com/SerenityOS/serenity/commit/1a56fe714cd Pull-request: https://github.com/SerenityOS/serenity/pull/2504
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ pushd "$DIR/Build/"
|
||||||
mkdir -p "$BUILD"
|
mkdir -p "$BUILD"
|
||||||
pushd "$BUILD"
|
pushd "$BUILD"
|
||||||
CXXFLAGS="-DBUILDING_SERENITY_TOOLCHAIN" cmake ..
|
CXXFLAGS="-DBUILDING_SERENITY_TOOLCHAIN" cmake ..
|
||||||
"$MAKE" LibC
|
cmake --build . --target LibC
|
||||||
install -D Libraries/LibC/libc.a Libraries/LibM/libm.a Root/usr/lib/
|
install -D Libraries/LibC/libc.a Libraries/LibM/libm.a Root/usr/lib/
|
||||||
SRC_ROOT=$(realpath "$DIR"/..)
|
SRC_ROOT=$(realpath "$DIR"/..)
|
||||||
for header in "$SRC_ROOT"/Libraries/Lib{C,M}/**/*.h; do
|
for header in "$SRC_ROOT"/Libraries/Lib{C,M}/**/*.h; do
|
||||||
|
|
Loading…
Reference in a new issue