Building Synfig using an arbitrary number of cores

I was wondering if it would be possible to choose the number of cores used to build.

In the script build.sh:

In practice, can we add an option to set the value of MAKE_THREADS?
(if not already available)

https://synfig-docs-dev.readthedocs.io/en/latest/common/building.html

And finally a quick note about “build.conf.sample” file in the root of source repository.

With this file you can tweak the number of threads used by the build scripts. Just copy “~/synfig.git/build.conf.sample” to “~/synfig.git/build.conf” and adjust its contents according to your needs.

:wink:

3 Likes

Didn’t know that, even though I’ve read that page at least once :upside_down_face:

I had in mind something like:
./2-build-debug.sh [package] [phase] optional:[--MAKE_THREADS=N]
but that will do the job.

Thank you!

Normally, you set global exports/environment BEFORE invoke the script, it would be more:
MAKE_THREADS=N ./2-build-debug.sh [package] [phase] optional

In this very case, MAKE_THREADS is overriden inside the script (line 49), but it would work with DEBUG=1 as prefix (lines 56-57)

:wink:

1 Like