From e4271b82da8957a442cccd1f8fb52e78874a24e9 Mon Sep 17 00:00:00 2001 From: nakeee Date: Thu, 18 Sep 2008 09:49:58 +0000 Subject: [PATCH] you can now use scons debug=1 for -g and -DLOGGING while regular build is with -O3 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@577 8ced0084-cf51-0410-be5f-012b33b47a6e --- SConstruct | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 786232587b..d74514b89c 100644 --- a/SConstruct +++ b/SConstruct @@ -17,8 +17,6 @@ warnings = [ #'unreachable-code', ] compileFlags = [ -# '-g', - '-O3', '-fno-strict-aliasing', '-msse2', '-D_FILE_OFFSET_BITS=64', @@ -74,6 +72,13 @@ if sys.platform == 'darwin': lib_paths = include_paths +debug = ARGUMENTS.get('debug', 0) +if int(debug): + compileFlags.append('-g') + compileFlags.append('-DLOGGING') +else: + compileFlags.append('-O3') + env = Environment( CC = "gcc", CXX = "g++",