mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
debian/rules: Limit compilation threads on armhf
* debian/rules: Limit compilation threads on armhf Should fix PPA builds for armhf Ubuntu 22.04. * Update comment [ci skip] * Update debian/rules [ci skip] Co-authored-by: Michał Janiszewski <janisozaur@users.noreply.github.com> --------- Co-authored-by: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Co-authored-by: Michał Janiszewski <janisozaur@users.noreply.github.com>
This commit is contained in:
parent
c53404ddf9
commit
4004b8e546
1 changed files with 9 additions and 0 deletions
9
debian/rules
vendored
9
debian/rules
vendored
|
@ -16,5 +16,14 @@ BUILDDIR=build_dir
|
|||
export DEB_CFLAGS_MAINT_APPEND = -Wno-stringop-overflow -Wno-maybe-uninitialized -Wno-error=null-dereference
|
||||
export DEB_CXXFLAGS_MAINT_APPEND = -Wno-stringop-overflow -Wno-maybe-uninitialized -Wno-error=null-dereference
|
||||
|
||||
# https://manpages.debian.org/testing/dpkg-dev/dpkg-architecture.1.en.html#Usage_in_debian/rules
|
||||
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
||||
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
||||
|
||||
# Set the number of jobs for armhf to avoid OOMing on older GCC versions (affects Launchpad PPA builds for Ubuntu)
|
||||
ifneq (,$(filter armhf,$(DEB_BUILD_GNU_TYPE)))
|
||||
export DEB_BUILD_OPTIONS = parallel=2
|
||||
endif
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
|
Loading…
Reference in a new issue