summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2013-04-21 14:45:37 (GMT)
committerRemko Tronçon <git@el-tramo.be>2013-04-21 14:45:37 (GMT)
commit5eff3391c316d5ab325b78024296e74127c6747c (patch)
treea86008521ec5d1b5704c76aae72545344536ad2b /Swiftob
parentf5946a1273b363f46ae0753eccdf6bd96a72e997 (diff)
downloadswift-5eff3391c316d5ab325b78024296e74127c6747c.zip
swift-5eff3391c316d5ab325b78024296e74127c6747c.tar.bz2
Fix compilation when 3rdParty/ is not there.
Change-Id: I6d86bf7d8dcc750ff69ff08500c9987b3c1de43e
Diffstat (limited to 'Swiftob')
-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"])