Skip to content
Snippets Groups Projects
Commit 0f5d17a7 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

toolchain/gcc: parallelize make install


If the staging dir was deleted, the build needs to recompile some files.
This change speeds up this corner case significantly

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 43332f51
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ endef ...@@ -67,7 +67,7 @@ endef
define Host/Install define Host/Install
$(CleanupToolchain) $(CleanupToolchain)
$(_SINGLE)$(GCC_MAKE) -C $(GCC_BUILD_DIR) install +$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) install
# Set up the symlinks to enable lying about target name. # Set up the symlinks to enable lying about target name.
set -e; \ set -e; \
(cd $(TOOLCHAIN_DIR); \ (cd $(TOOLCHAIN_DIR); \
......
...@@ -18,7 +18,7 @@ define Host/Compile ...@@ -18,7 +18,7 @@ define Host/Compile
endef endef
define Host/Install define Host/Install
$(GCC_MAKE) -C $(GCC_BUILD_DIR) \ +$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \
prefix="$(TOOLCHAIN_DIR)/initial" \ prefix="$(TOOLCHAIN_DIR)/initial" \
install-gcc \ install-gcc \
install-target-libgcc install-target-libgcc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment