You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Merge branch 'master' of github.com:okamstudio/godot
This commit is contained in:
@@ -53,8 +53,10 @@ def get_opts():
|
||||
return [
|
||||
('use_llvm','Use llvm compiler','no'),
|
||||
('use_sanitizer','Use llvm compiler sanitize address','no'),
|
||||
('use_leak_sanitizer','Use llvm compiler sanitize memory leaks','no'),
|
||||
('pulseaudio','Detect & Use pulseaudio','yes'),
|
||||
('new_wm_api', 'Use experimental window management API','no'),
|
||||
('debug_release', 'Add debug symbols to release version','no'),
|
||||
]
|
||||
|
||||
def get_flags():
|
||||
@@ -95,6 +97,12 @@ def configure(env):
|
||||
env.Append(LINKFLAGS=['-fsanitize=address'])
|
||||
env.extra_suffix+="s"
|
||||
|
||||
if (env["use_leak_sanitizer"]=="yes"):
|
||||
env.Append(CXXFLAGS=['-fsanitize=address','-fno-omit-frame-pointer'])
|
||||
env.Append(LINKFLAGS=['-fsanitize=address'])
|
||||
env.extra_suffix+="s"
|
||||
|
||||
|
||||
#if (env["tools"]=="no"):
|
||||
# #no tools suffix
|
||||
# env['OBJSUFFIX'] = ".nt"+env['OBJSUFFIX']
|
||||
@@ -102,8 +110,11 @@ def configure(env):
|
||||
|
||||
|
||||
if (env["target"]=="release"):
|
||||
|
||||
env.Append(CCFLAGS=['-O2','-ffast-math','-fomit-frame-pointer'])
|
||||
|
||||
if (env["debug_release"]=="yes"):
|
||||
env.Append(CCFLAGS=['-g2'])
|
||||
else:
|
||||
env.Append(CCFLAGS=['-O3','-ffast-math'])
|
||||
|
||||
elif (env["target"]=="release_debug"):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user