summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-09-01 21:06:48 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-09-01 21:06:48 (GMT)
commitabf10a2c0200819f6bb99366220f4c7566c01028 (patch)
tree2eece51c45661594a9f3ef4acc7c91c39a2693ec /BuildTools/SCons/SConstruct
parent903f044aea9c7b356c072bc85379d0e9825929d3 (diff)
downloadswift-abf10a2c0200819f6bb99366220f4c7566c01028.zip
swift-abf10a2c0200819f6bb99366220f4c7566c01028.tar.bz2
Allow forcing of bundled sqlite, and compile sqlite on OS X
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r--BuildTools/SCons/SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 42dc36a..3be4bd7 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -366,7 +366,7 @@ if env.get("sqlite_includedir", None) :
sqlite_flags["CPPPATH"] = [env["sqlite_includedir"]]
sqlite_conf_env.MergeFlags(sqlite_flags)
conf = Configure(sqlite_conf_env)
-if conf.CheckCHeader("sqlite3.h") and conf.CheckLib(env["sqlite_libname"]) :
+if conf.CheckCHeader("sqlite3.h") and conf.CheckLib(env["sqlite_libname"]) and not env.get("sqlite_force_bundled", False):
env["HAVE_SQLITE"] = 1
env["SQLITE_FLAGS"] = { "LIBS": [env["sqlite_libname"]] }
env["SQLITE_FLAGS"].update(sqlite_flags)