[Build-common-hackers] Bug#575762: cdbs: Enable parallel build in scons
Felipe Sateler
fsateler at gmail.com
Mon Mar 29 02:44:34 UTC 2010
Package: cdbs
Version: 0.4.74
Severity: wishlist
Tags: patch
The scons class does not enable parallel builds as do other classes. The
attached patch enables them.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cdbs depends on:
ii debhelper 7.4.15 helper programs for debian/rules
Versions of packages cdbs recommends:
ii autotools-dev 20100122.1 Update infrastructure for config.{
Versions of packages cdbs suggests:
ii devscripts 2.10.61 scripts to make the life of a Debi
ii doc-base 0.9.5 utilities to manage online documen
-- no debconf information
-------------- next part --------------
--- /usr/share/cdbs/1/class/scons-vars.mk 2010-03-20 15:59:28.000000000 -0300
+++ scons-vars.mk 2010-03-28 23:31:35.000000000 -0300
@@ -26,7 +26,8 @@
include $(_cdbs_class_path)/langcore.mk$(_cdbs_makefile_suffix)
DEB_SCONS_ENVVARS =
-DEB_SCONS_INVOKE = $(DEB_SCONS_ENVVARS) scons --directory="$(DEB_BUILDDIR)" CC="$(or $(CC_$(cdbs_curpkg)),$(CC))" CFLAGS="$(or $(CFLAGS_$(cdbs_curpkg)),$(CFLAGS))" CXX="$(or $(CXX_$(cdbs_curpkg)),$(CXX))" CXXFLAGS="$(or $(CXXFLAGS_$(cdbs_curpkg)),$(CXXFLAGS))"
+DEB_SCONS_PARALLEL = $(and $(DEB_BUILD_PARALLEL),$(DEB_PARALLEL_JOBS),-j$(DEB_PARALLEL_JOBS))
+DEB_SCONS_INVOKE = $(DEB_SCONS_ENVVARS) scons --directory="$(DEB_BUILDDIR)" CC="$(or $(CC_$(cdbs_curpkg)),$(CC))" CFLAGS="$(or $(CFLAGS_$(cdbs_curpkg)),$(CFLAGS))" CXX="$(or $(CXX_$(cdbs_curpkg)),$(CXX))" CXXFLAGS="$(or $(CXXFLAGS_$(cdbs_curpkg)),$(CXXFLAGS))" $(DEB_SCONS_PARALLEL)
# general options (passed on all scons commands)
DEB_SCONS_OPTIONS =
More information about the Build-common-hackers
mailing list