summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiftob/SConscript')
-rw-r--r--Swiftob/SConscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/Swiftob/SConscript b/Swiftob/SConscript
index 4f6464a..424ae72 100644
--- a/Swiftob/SConscript
+++ b/Swiftob/SConscript
@@ -1,7 +1,11 @@
Import("env")
+if env["SCONS_STAGE"] == "build" and not GetOption("help") and not env.get("HAVE_LUA", 0) :
+ print "Warning: Lua was not found. Swiftob will not be built."
+ if "Sluift" in env["PROJECTS"] :
+ env["PROJECTS"].remove("Sluift")
-if env["SCONS_STAGE"] == "build":
+elif env["SCONS_STAGE"] == "build":
myenv = env.Clone()
# Too many compile warnings here at the moment
myenv.Replace(CXXFLAGS = [flag for flag in env["CXXFLAGS"] if flag != "-Weverything"])