scons -j 4 automatic

scons -j 4 automatic

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
zyzy
Posts: 57
Joined: 27 Jan 2006, 22:40

scons -j 4 automatic

Post by zyzy »

Hi,
is it possible for an automatic d├â┬®tection of type of proc for speed up compiling?
testing: win xp intel quad Q6600.
I compile in 2mins with all options

Code: Select all

compile time 
4 simultaneous jobs 2-3mins
start compiling 18
end compiling  21

2 simultaneous jobs 6mins
start compiling 22
end compiling 28

no simultaneous jobs 13mins
start compiling 28
end compiling  40
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: scons -j 4 automatic

Post by Tobi »

Why would you want it? Adding -j4 to commandline isn't that hard right?

Or just make a scons.bat batch file in the path before real scons that calls real scons and adds the -j4 argument, if you really can't stand the typing, and don't have it bound to key in some IDE.
zyzy
Posts: 57
Joined: 27 Jan 2006, 22:40

Re: scons -j 4 automatic

Post by zyzy »

just for information:
i attach a patch that can do it....

PS: i can't put a resolved status on my post?
isn't actived?
Attachments
SConstruct.7z
patch for automatic detection of NB of processor for n jobs
(752 Bytes) Downloaded 13 times
Post Reply

Return to “Engine”