aboutsummaryrefslogtreecommitdiff
path: root/platform/haiku/detect.py
diff options
context:
space:
mode:
authorHein-Pieter van Braam2017-09-13 19:32:24 +0200
committerHein-Pieter van Braam2017-09-16 12:00:46 +0200
commit88be952fc9021df7e10adc49211e5024d200a665 (patch)
treeafa21dedc146ea54732a6486f3d76fc0f3b2a255 /platform/haiku/detect.py
parent62cb43bb8dec8f5078012b58ff06a2077078565f (diff)
downloadgodot-88be952fc9021df7e10adc49211e5024d200a665.tar.gz
godot-88be952fc9021df7e10adc49211e5024d200a665.tar.zst
godot-88be952fc9021df7e10adc49211e5024d200a665.zip
Diffstat (limited to 'platform/haiku/detect.py')
-rw-r--r--platform/haiku/detect.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/platform/haiku/detect.py b/platform/haiku/detect.py
index c0e003a3d..61ee32d2d 100644
--- a/platform/haiku/detect.py
+++ b/platform/haiku/detect.py
@@ -21,7 +21,7 @@ def can_build():
def get_opts():
return [
- ('debug_release', 'Add debug symbols to release version', 'no')
+ ('debug_symbols', 'Add debug symbols to release version (yes/no/full)', 'yes')
]
@@ -36,16 +36,21 @@ def configure(env):
## Build type
if (env["target"] == "release"):
- if (env["debug_release"] == "yes"):
+ env.Prepend(CCFLAGS=['-O3', '-ffast-math'])
+ if (env["debug_symbols"] == "yes"):
+ env.Prepend(CCFLAGS=['-g1'])
+ if (env["debug_symbols"] == "full"):
env.Prepend(CCFLAGS=['-g2'])
- else:
- env.Prepend(CCFLAGS=['-O3', '-ffast-math'])
elif (env["target"] == "release_debug"):
env.Prepend(CCFLAGS=['-O2', '-ffast-math', '-DDEBUG_ENABLED'])
+ if (env["debug_symbols"] == "yes"):
+ env.Prepend(CCFLAGS=['-g1'])
+ if (env["debug_symbols"] == "full"):
+ env.Prepend(CCFLAGS=['-g2'])
elif (env["target"] == "debug"):
- env.Prepend(CCFLAGS=['-g2', '-DDEBUG_ENABLED', '-DDEBUG_MEMORY_ENABLED'])
+ env.Prepend(CCFLAGS=['-g3', '-DDEBUG_ENABLED', '-DDEBUG_MEMORY_ENABLED'])
## Architecture