mail[Wesnoth-commits] r28848 - /trunk/SConstruct


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by loonycyborg on August 22, 2008 - 19:20:
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')




Related Messages


Powered by MHonArc, Updated Fri Aug 22 22:01:36 2008