Author: loonycyborg
Date: Fri Aug 22 19:20:26 2008
New Revision: 28848
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28848&view=rev
Log:
Improved distcc option to take arbitrary number of parallel compilations.
Modified:
trunk/SConstruct
Modified: trunk/SConstruct
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=28848&r1=28847&r2=28848&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Fri Aug 22 19:20:26 2008
@@ -80,7 +80,7 @@
PathOption('gettextdir', 'Root directory of Gettext\'s installation.', "",
OptionalPath),
PathOption('gtkdir', 'Directory where GTK SDK is installed.', "",
OptionalPath),
('host', 'Cross-compile host.', ''),
- EnumOption('distcc', "Use distcc", "0",
["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"]),
+ ('distcc', "distcc: 0 - don't use distcc, 1.. - use distcc and run this
number of parallel compilations", "0", lambda key, value, env: int(value), int),
BoolOption('ccache', "Use ccache", False),
('cxxtool', 'Set c++ compiler command if not using standard compiler.'),
BoolOption("fast", "Make scons faster at cost of less precise dependency
tracking.", False)
@@ -107,7 +107,7 @@
env['CXX'] = env['cxxtool']
env['ENV']['HOME'] = os.environ['HOME']
-if env['distcc'] != "0":
+if env['distcc']:
env.Tool('distcc')
SetOption("num_jobs", env['distcc'])
if env['ccache']: env.Tool('ccache')
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits