summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Sluift/SConscript2
-rw-r--r--Swiftob/SConscript4
2 files changed, 3 insertions, 3 deletions
diff --git a/Sluift/SConscript b/Sluift/SConscript
index 777cf0c..19255f1 100644
--- a/Sluift/SConscript
+++ b/Sluift/SConscript
@@ -14,7 +14,7 @@ if env["SCONS_STAGE"] == "build" :
myenv = env.Clone()
myenv.Append(LIBS = sluift_lib)
- myenv.UseFlags(env["LUA_FLAGS"])
+ myenv.UseFlags(env.get("LUA_FLAGS", {}))
myenv.UseFlags(env["SWIFTEN_FLAGS"])
myenv.UseFlags(env["SWIFTEN_DEP_FLAGS"])
myenv["SHLIBPREFIX"] = ""
diff --git a/Swiftob/SConscript b/Swiftob/SConscript
index 2139822..3928ff0 100644
--- a/Swiftob/SConscript
+++ b/Swiftob/SConscript
@@ -12,7 +12,7 @@ if env["SCONS_STAGE"] == "build":
myenv.MergeFlags(myenv.get("LIBXML_FLAGS", ""))
myenv.MergeFlags(myenv.get("EXPAT_FLAGS", ""))
myenv.MergeFlags(myenv["PLATFORM_FLAGS"])
- myenv.MergeFlags(myenv["LUA_FLAGS"])
+ myenv.MergeFlags(myenv.get("LUA_FLAGS", {}))
sources = [
"linit.c", # This is horrible!
"Swiftob.cpp",
@@ -23,4 +23,4 @@ if env["SCONS_STAGE"] == "build":
"LuaCommands.cpp",
"main.cpp"
]
- swiftob = myenv.Program("swiftob", sources) \ No newline at end of file
+ swiftob = myenv.Program("swiftob", sources)