Haiku: update detect.py

This commit is contained in:
Kostadin Damyanov 2015-07-20 22:45:22 +03:00
parent 07e76a3f2c
commit f8db8b7215

View File

@ -17,7 +17,9 @@ def can_build():
return True return True
def get_opts(): def get_opts():
return [] return [
('debug_release', 'Add debug symbols to release version','no')
]
def get_flags(): def get_flags():
return [ return [
@ -41,9 +43,9 @@ def configure(env):
if (env["target"]=="release"): if (env["target"]=="release"):
if (env["debug_release"]=="yes"): if (env["debug_release"]=="yes"):
env.Append(CCFLAGS=['-g2','-fomit-frame-pointer']) env.Append(CCFLAGS=['-g2'])
else: else:
env.Append(CCFLAGS=['-O2','-ffast-math','-fomit-frame-pointer']) env.Append(CCFLAGS=['-O3','-ffast-math'])
elif (env["target"]=="release_debug"): elif (env["target"]=="release_debug"):
env.Append(CCFLAGS=['-O2','-ffast-math','-DDEBUG_ENABLED']) env.Append(CCFLAGS=['-O2','-ffast-math','-DDEBUG_ENABLED'])
elif (env["target"]=="debug"): elif (env["target"]=="debug"):