Skip to content

Commit

Permalink
Use --jobs=auto or -j7 with dpkg-buildpackage, depending on platform
Browse files Browse the repository at this point in the history
  • Loading branch information
srh committed Nov 23, 2019
1 parent ebdbbcd commit fad2ca4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mk/packaging.mk
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ ifneq ($(UBUNTU_RELEASE),)
# RethinkDB fails to compile with GCC 6 (#5757)
DEB_BUILD_DEPENDS += , g++-5, libssl-dev
DSC_CONFIGURE_DEFAULT += CXX=g++-5
DPKG_JOBS := -j7
else
# RethinkDB fails to compile with GCC 6 (#5757) -- and there is
# no GCC 5 in later Ubuntus. We need to use libssl1.0-dev on
Expand All @@ -75,13 +76,16 @@ ifneq ($(UBUNTU_RELEASE),)
endif
DEB_BUILD_DEPENDS += , clang
DSC_CONFIGURE_DEFAULT += CXX=clang++
DPKG_JOBS := --jobs=auto
endif
else ifneq ($(DEB_RELEASE),)
ifneq ($(filter $(DEB_RELEASE), jessie),)
DEB_BUILD_DEPENDS += , g++
DPKG_JOBS := -j7
else
DEB_BUILD_DEPENDS += , clang
DSC_CONFIGURE_DEFAULT += CXX=clang++
DPKG_JOBS := --jobs=auto
endif
ifneq ($(filter $(DEB_RELEASE), stretch),)
DEB_BUILD_DEPENDS += , libssl1.0-dev
Expand Down Expand Up @@ -142,7 +146,7 @@ deb-src-dir: dist-dir
.PHONY: build-deb
build-deb: deb-src-dir
$P BUILD-DEB $(DSC_PACKAGE_DIR)
cd $(DSC_PACKAGE_DIR) && MAKEFLAGS='$(PKG_MAKEFLAGS)' dpkg-buildpackage --jobs=auto -rfakeroot $(DEBUILD_SIGN_OPTIONS)
cd $(DSC_PACKAGE_DIR) && MAKEFLAGS='$(PKG_MAKEFLAGS)' dpkg-buildpackage $(DPKG_JOBS) -rfakeroot $(DEBUILD_SIGN_OPTIONS)

.PHONY: install-osx
install-osx: install-binaries
Expand Down

0 comments on commit fad2ca4

Please sign in to comment.