summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '3rdParty')
-rw-r--r--3rdParty/Lua/SConscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/3rdParty/Lua/SConscript b/3rdParty/Lua/SConscript
index 9d0315e..f69c3cd 100644
--- a/3rdParty/Lua/SConscript
+++ b/3rdParty/Lua/SConscript
@@ -8,12 +8,14 @@ if env.get("LUA_BUNDLED", False) :
if env["SCONS_STAGE"] == "flags" :
cppdefines = []
+ if not env["optimize"] :
+ cppdefines.append("LUA_USE_APICHECK")
if env["PLATFORM"] == "win32" :
pass
elif env["PLATFORM"] == "darwin" :
- cppdefines = ["LUA_USE_POSIX", "LUA_USE_DLOPEN"]
+ cppdefines += ["LUA_USE_POSIX", "LUA_USE_DLOPEN"]
else :
- cppdefines = ["LUA_USE_POSIX", "LUA_USE_DLOPEN"]
+ cppdefines += ["LUA_USE_POSIX", "LUA_USE_DLOPEN"]
env["LUA_FLAGS"] = {
"CPPDEFINES": cppdefines,