Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=d926d2b9ed2ba0342fe52b12dab75237d94322d4
commit d926d2b9ed2ba0342fe52b12dab75237d94322d4 Author: James Buren <[email protected]> Date: Wed Oct 8 20:25:52 2014 -0500 scons: fix options handling to use boolean values instead of integers diff --git a/SConstruct b/SConstruct index 12a168f..72063ad 100755 --- a/SConstruct +++ b/SConstruct @@ -33,54 +33,48 @@ def CheckPlatform(ctx): AddOption( '--enable-shared', dest='shared', - nargs='?', - const=1, - default=1 + action="store_true", + default=True ) # Disable shared builds AddOption( '--disable-shared', dest='shared', - nargs='?', - const=0, - default=1 + action="store_false", + default=True ) # Enable static builds AddOption( '--enable-static', dest='static', - nargs='?', - const=1, - default=0 + action="store_true", + default=False ) # Disable static builds AddOption( '--disable-static', dest='static', - nargs='?', - const=0, - default=0 + action="store_false", + default=False ) # Enable debugging AddOption( '--enable-debug', dest='debug', - nargs='?', - const=1, - default=1 + action="store_true", + default=True ) # Disable debugging AddOption( '--disable-debug', dest='debug', - nargs='?', - const=0, - default=1 + action="store_false", + default=True ) # Get the build environment _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
