Please note:The SCons wiki is now restored from the attack in March 2013. All old passwords have been invalidated. Please reset your password if you have an account. If you note missing pages, please report them to webmaster@scons.org. Also, new account creation is currently disabled due to an ongoing spam flood (2013/08/27).
Differences between revisions 3 and 4
Revision 3 as of 2007-11-21 00:55:06
Size: 478
Editor: ip68-7-81-199
Comment: Initial answer
Revision 4 as of 2008-03-12 02:46:57
Size: 479
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Use the [:SConsMethods/SideEffect:SideEffect() method] and specify the same dummy file for each target that shouldn't be built in parallel. Even if the file doesn't exist, SCons will prevent the simultaneous execution of commands that affect the dummy file. Use the [[SConsMethods/SideEffect|SideEffect() method]] and specify the same dummy file for each target that shouldn't be built in parallel. Even if the file doesn't exist, SCons will prevent the simultaneous execution of commands that affect the dummy file.

Use the SideEffect() method and specify the same dummy file for each target that shouldn't be built in parallel. Even if the file doesn't exist, SCons will prevent the simultaneous execution of commands that affect the dummy file.

This answer should be expanded with at least two specific examples: one demonstrating preventing different commands in parallel, and one demonstrating how a builder would prevent parallel execution with itself.

FrequentlyAskedQuestions/PreventingParallelBuilds (last edited 2008-03-12 02:46:57 by localhost)