Meta: Fix that the processor count was output to stderr and ignored

Because of ninja's default behavior of using all processors this gave
the correct behaviour because MAKEJOBS was empty. However this meant
that the processor count was printed to stderr when building.
This commit is contained in:
davidot 2022-03-08 17:26:32 +01:00 committed by Linus Groh
parent 3192cabc0e
commit 6dd8ef485a

View file

@ -220,7 +220,7 @@ build_target() {
fi
# Get either the environement MAKEJOBS or all processors via CMake
[ -z "$MAKEJOBS" ] && MAKEJOBS=$(cmake -P "$SERENITY_SOURCE_DIR/Meta/CMake/processor-count.cmake")
[ -z "$MAKEJOBS" ] && MAKEJOBS=$(cmake -P "$SERENITY_SOURCE_DIR/Meta/CMake/processor-count.cmake" 2>&1)
# With zero args, we are doing a standard "build"
# With multiple args, we are doing an install/image/run