GtkRadiant icon indicating copy to clipboard operation
GtkRadiant copied to clipboard

Scons -j parameter is not defined

Open magicmyth opened this issue 7 years ago • 6 comments

The scons build system quick help says we can define the number of build threads via the -jN switch but this is not implemented and when starting a build like the example:

scons -j8 --no-packs

A warning will be given:

scons: Reading SConscript files ...
syntax error (statement match): '-j8'
stop statement parse at '-j8'
...

magicmyth avatar Apr 28 '18 15:04 magicmyth

I think you need to pass parameters to scons in a different way. Maybe after a --.

TTimo avatar Apr 28 '18 16:04 TTimo

I tried --j but that gives the same warning. I've just run it with only --no-packs and also get:

...
syntax error (statement match): '--no-packs'
stop statement parse at '--no-packs'
saving updated configuration
...

but that is definitely working (no packs downloaded) so it seems to be a false positive error. This happens both on Ubuntu 16.04 with scons 2.4 and in a Flatpak Builder environment that has scons 3.0.1. I don't know how to verify if the parallel threads switch actually works or not?

magicmyth avatar Apr 28 '18 16:04 magicmyth

--no-packs is an option for our scripts, -j if it works would be an option for scons.

TTimo avatar Apr 28 '18 16:04 TTimo

I understand that. And I've just compared a build with and without the -j switch and the one with was much faster so its working. Just giving out errors about any switches even though they are valid.

magicmyth avatar Apr 28 '18 16:04 magicmyth

scons --no-packs -- -j8 ?

ensiform avatar Apr 28 '18 17:04 ensiform

Still get a warning:

syntax error (statement match): '--no-packs'
stop statement parse at '--no-packs'

magicmyth avatar Apr 28 '18 18:04 magicmyth