summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-04-29 18:06:24 (GMT)
committerTobias Markmann <tm@ayena.de>2015-04-29 18:06:24 (GMT)
commit1e5ca0c1fe156cd614cfbfce432c40eeadb893fd (patch)
tree316ead0922410acd7866b802577ac9b24725f201 /3rdParty
parent68263f7cb360ae52915017df202775665c4eeeb6 (diff)
downloadswift-1e5ca0c1fe156cd614cfbfce432c40eeadb893fd.zip
swift-1e5ca0c1fe156cd614cfbfce432c40eeadb893fd.tar.bz2
Ignore compiler warnings from 3rdParty libraries
When compiling with Clang or GCC, include 3rdParty libraries as system headers and frameworks (-isystem and -f). Test-Information: Tested with Clang on OS X. Change-Id: I184221ddc4b34d30ee6ba66e202953619b5afd56
Diffstat (limited to '3rdParty')
-rw-r--r--3rdParty/LibNATPMP/SConscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/3rdParty/LibNATPMP/SConscript b/3rdParty/LibNATPMP/SConscript
index 5d08698..273c2d2 100644
--- a/3rdParty/LibNATPMP/SConscript
+++ b/3rdParty/LibNATPMP/SConscript
@@ -9,10 +9,13 @@ if env.get("LIBNATPMP_BUNDLED", False) :
if env["SCONS_STAGE"] == "flags" :
env["HAVE_LIBNATPMP"] = True
env["LIBNATPMP_FLAGS"] = {
- "CPPPATH": [Dir("src/libnatpmp")],
"LIBPATH": [Dir(".")],
"INTERNAL_CPPDEFINES": ["STATICLIB"],
}
+ if env["CC"] in ("clang", "gcc") :
+ env["LIBNATPMP_FLAGS"].update({"CPPFLAGS": ["-isystem" "3rdParty/LibNATPMP/src/libnatpmp"]})
+ else :
+ env["LIBNATPMP_FLAGS"].update({"CPPPATH": [Dir("src/libnatpmp")]})
#if env["PLATFORM"] == "win32" :
# env["LIBIDN_FLAGS"]["CPPPATH"] += [Dir("stubs/win32")]
# if env["MSVC_VERSION"][:3] == "9.0" :