Преглед изворни кода

tools/elfutils: enable parallel building

There are multiple subdirectories for elfutils
and more than one is not dependent on another,
so enabling parallel building can save time
if multiple cores are available.

The change in build time for the package
is as much as 20% when cores are not in use by other jobs.

Signed-off-by: Michael Pratt <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko <[email protected]>
Michael Pratt пре 1 година
родитељ
комит
0b4ebe5dd3
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      tools/elfutils/Makefile

+ 2 - 0
tools/elfutils/Makefile

@@ -48,6 +48,8 @@ PKG_GNULIB_MODS = \
 	strchrnul \
 	strchrnul \
 	tsearch
 	tsearch
 
 
+HOST_BUILD_PARALLEL:=1
+
 include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/host-build.mk
 
 
 export $(PKG_GNULIB_BASE)=$(HOST_BUILD_DIR)/$(PKG_GNULIB_BASE)/.libs/$(PKG_GNULIB_BASE).a
 export $(PKG_GNULIB_BASE)=$(HOST_BUILD_DIR)/$(PKG_GNULIB_BASE)/.libs/$(PKG_GNULIB_BASE).a