diff options
author | Tobias Markmann <tm@ayena.de> | 2015-04-29 18:06:24 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2015-04-29 18:06:24 (GMT) |
commit | 1e5ca0c1fe156cd614cfbfce432c40eeadb893fd (patch) | |
tree | 316ead0922410acd7866b802577ac9b24725f201 /3rdParty | |
parent | 68263f7cb360ae52915017df202775665c4eeeb6 (diff) | |
download | swift-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/SConscript | 5 |
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" : |