summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-03 13:18:20 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-03 13:18:20 +0100
commit1af304131e51249679860d3378fbb6bc31c9dcfc (patch)
tree450ebca5a8073212b29626104e19f3284612acda /scripts
parent366ee9b4b16fdd92b51a40ac878e3d170fddf31c (diff)
fix compile on clang 3.7 (nw)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/src/3rdparty.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua
index 773a6f9384c..c1300eac887 100644
--- a/scripts/src/3rdparty.lua
+++ b/scripts/src/3rdparty.lua
@@ -296,6 +296,16 @@ project "7z"
uuid "ad573d62-e76a-4b11-ae34-5110a6789a42"
kind "StaticLib"
+ local version = str_to_version(_OPTIONS["gcc_version"])
+ if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then
+ configuration { "gmake" }
+ if (version >= 30700) then
+ buildoptions {
+ "-Wno-shift-negative-value",
+ }
+ end
+ end
+
configuration { "vs*" }
buildoptions {
"/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter