Haiku: update detect.py
This commit is contained in:
parent
07e76a3f2c
commit
f8db8b7215
@ -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"):
|
||||||
|
Loading…
Reference in New Issue
Block a user