mirror of
https://github.com/godotengine/godot-platform-haiku.git
synced 2026-01-04 06:09:42 +03:00
Haiku: enable debug support
This commit is contained in:
12
detect.py
12
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'])
|
||||
|
||||
Reference in New Issue
Block a user