diff options
author | 2016-01-04 13:28:40 +0100 | |
---|---|---|
committer | 2016-01-04 13:29:42 +0100 | |
commit | e0deb80b549e8c1683412080cda2536b28c756d0 (patch) | |
tree | 942de968988dbaca18c3b7a2d291d9619042debb /scripts/src | |
parent | 9ffe6faa4424a1d00b607e3187c62f492c992d16 (diff) |
Fix building on clang, executable fail starting due to mixed allocators (nw)
Diffstat (limited to 'scripts/src')
-rw-r--r-- | scripts/src/3rdparty.lua | 18 |
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 { |