I'm trying to make a Debian package for a cmake project that, in single-threaded mode, takes 3 hours to compile. I'm trying to get a parallel build, but failing.
I've tried setting parallel=4
in my control
file like so:
#!/usr/bin/make -f
export DEB_BUILD_OPTIONS="parallel=4"
%:
dh $@ --parallel
Based on the accepted answer on this previous question, but I get the following warning:
dh: warning: invalid flag in DEB_BUILD_OPTIONS: "parallel=4"
And debhelper still invokes make -j1
.
I've tried variations on the theme based on other suggestions/comments I've found online, DEB_BUILD_OPTIONS="-j=4"
, DEB_BUILD_OPTIONS="-j4"
etc to no effect. I've tried setting debian/compat
to 10
. Always the result is invalid flag
. How can I make debhelper honor this setting?
I'm doing the build in an Ubuntu Focal x86_64 docker container, and my version of debhelper
is 12.10ubuntu1
.