summaryrefslogtreecommitdiff
path: root/util/crossgcc/buildgcc
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2023-04-01 11:32:56 +0200
committerFelix Singer <felixsinger@review.coreboot.org>2023-04-03 13:22:21 +0000
commit3a5507fd3166e18f5ca510f1475afbedccf69b6a (patch)
tree0eb60d3cbe8bf034cdfe27eb3ca211bba63ca4f9 /util/crossgcc/buildgcc
parentdea2c477f4bef67c692ee7cab6b25b56fb0caf27 (diff)
util/crossgcc/buildgcc: Allow bootstrapping CMake with multiple threads
The main build process already runs multi-threaded, when requested. Apply the same setting to the bootstrap / configure step. Change-Id: I89d6728a0985946b702f83770bedf767afb12690 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74156 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/crossgcc/buildgcc')
-rwxr-xr-xutil/crossgcc/buildgcc1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 391d8016fb..4f136060d4 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -893,6 +893,7 @@ build_LLVM() {
build_CMAKE() {
CC="$(hostcc host)" CXX="$(hostcxx host)" CFLAGS="$HOSTCFLAGS" \
../${CMAKE_DIR}/configure \
+ --parallel=${THREADS} \
--prefix="$TARGETDIR" || touch .failed
# shellcheck disable=SC2086
$MAKE $JOBS || touch .failed