summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src')
-rw-r--r--scripts/src/3rdparty.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua
index c4f460fe697..da3740bd28d 100644
--- a/scripts/src/3rdparty.lua
+++ b/scripts/src/3rdparty.lua
@@ -251,6 +251,12 @@ if _OPTIONS["vs"]=="intel-15" then
}
end
+ configuration { "mingw-clang" }
+ defines {
+ "SIZE_MAX=UINT_MAX",
+ "SIZE_T_MAX=UINT_MAX",
+ }
+
configuration { "vs2015" }
buildoptions {
"/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration
@@ -378,6 +384,12 @@ project "lua"
buildoptions_c {
"-Wno-bad-function-cast"
}
+
+ configuration { "mingw-clang" }
+ defines {
+ "LUA_USE_C89",
+ }
+
configuration { "vs*" }
buildoptions {
"/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data
@@ -726,6 +738,7 @@ end
buildoptions {
"-Wno-unknown-attributes",
"-Wno-missing-braces",
+ "-Wno-int-to-pointer-cast",
}
end
end
@@ -942,6 +955,11 @@ project "gtest"
"-Wno-unused-variable",
}
+ configuration { "mingw-clang" }
+ buildoptions {
+ "-O0", -- crash of compiler when doing optimization
+ }
+
configuration { "vs*" }
if _OPTIONS["vs"]=="intel-15" then
buildoptions {