diff options
author | Kostadin Damyanov <maxmight@gmail.com> | 2015-05-28 00:59:41 +0300 |
---|---|---|
committer | Kostadin Damyanov <maxmight@gmail.com> | 2015-05-28 00:59:41 +0300 |
commit | 8dd674d6399b5543f589d3b770c97209e3e31c3b (patch) | |
tree | ce027c8c2fb1978e36aa5eae04b0026bf1e19d7c /platform/haiku/detect.py | |
parent | a5533270436e51c660d2c196e2a6a8f9e21d6420 (diff) | |
download | redot-engine-8dd674d6399b5543f589d3b770c97209e3e31c3b.tar.gz |
Haiku: enable debug support
Diffstat (limited to 'platform/haiku/detect.py')
-rw-r--r-- | platform/haiku/detect.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/platform/haiku/detect.py b/platform/haiku/detect.py index b443469d8d..0c4d091824 100644 --- a/platform/haiku/detect.py +++ b/platform/haiku/detect.py @@ -39,6 +39,16 @@ def configure(env): env["CC"] = "gcc-x86" env["CXX"] = "g++-x86" - env.Append(CPPFLAGS = ['-DDEBUG_METHODS_ENABLED']) + if (env["target"]=="release"): + if (env["debug_release"]=="yes"): + env.Append(CCFLAGS=['-g2','-fomit-frame-pointer']) + else: + env.Append(CCFLAGS=['-O2','-ffast-math','-fomit-frame-pointer']) + elif (env["target"]=="release_debug"): + env.Append(CCFLAGS=['-O2','-ffast-math','-DDEBUG_ENABLED']) + elif (env["target"]=="debug"): + env.Append(CCFLAGS=['-g2', '-Wall','-DDEBUG_ENABLED','-DDEBUG_MEMORY_ENABLED']) + + #env.Append(CPPFLAGS = ['-DDEBUG_METHODS_ENABLED']) env.Append(CPPFLAGS = ['-DUNIX_ENABLED']) env.Append(LIBS = ['be', 'z', 'network', 'bnetapi']) |