mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Force optimized builds for thirdparty Embree files
(cherry picked from commit b197fc2079)
This commit is contained in:
parent
759ce9b689
commit
99aa9a99f9
3 changed files with 13 additions and 0 deletions
11
methods.py
11
methods.py
|
|
@ -59,6 +59,17 @@ def disable_warnings(self):
|
|||
self.Append(CXXFLAGS=["-w"])
|
||||
|
||||
|
||||
def force_optimization_on_debug(self):
|
||||
# 'self' is the environment
|
||||
if self["target"] != "debug":
|
||||
return
|
||||
|
||||
if self.msvc:
|
||||
self.Append(CCFLAGS=["/O2"])
|
||||
else:
|
||||
self.Append(CCFLAGS=["-O3"])
|
||||
|
||||
|
||||
def add_module_version_string(self, s):
|
||||
self.module_version_string += "." + s
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue