Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=ec4288ca3379b23e068ef998676fe9b3ad5f96e9
commit ec4288ca3379b23e068ef998676fe9b3ad5f96e9 Author: James Buren <[email protected]> Date: Wed Oct 8 16:54:11 2014 -0500 scons: add a debug option diff --git a/SConstruct b/SConstruct index 818bdfd..176e865 100755 --- a/SConstruct +++ b/SConstruct @@ -14,18 +14,6 @@ def CheckPKG(ctx, name): env = Environment() -try: - static = int(ARGUMENTS.get('static', 0)) -except ValueError: - print('static is invalid.') - Exit(1) - -try: - shared = int(ARGUMENTS.get('shared', 1)) -except ValueError: - print('shared is invalid.') - Exit(1) - cfg = Configure( env, { @@ -47,3 +35,24 @@ if not cfg.CheckPKG('libcurl'): Exit(1) env = cfg.Finish() + +try: + debug = int(ARGUMENTS.get('debug', 0)) +except ValueError: + print('debug is invalid.') + Exit(1) + +try: + static = int(ARGUMENTS.get('static', 0)) +except ValueError: + print('static is invalid.') + Exit(1) + +try: + shared = int(ARGUMENTS.get('shared', 1)) +except ValueError: + print('shared is invalid.') + Exit(1) + +if debug: + env.Append(CCFLAGS = '-g') _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
