Fix building on clang, executable fail starting due to mixed allocators (nw)

This commit is contained in:
Miodrag Milanovic 2016-01-04 13:28:40 +01:00
parent 9ffe6faa44
commit e0deb80b54
3 changed files with 31 additions and 11 deletions

View File

@ -1058,7 +1058,19 @@ configuration { "osx*" }
"pthread",
}
configuration { "mingw*" }
configuration { "mingw-clang" }
links {
"gcc",
"stdc++",
"user32",
"winmm",
"advapi32",
"shlwapi",
"wsock32",
"pthread",
}
configuration { "mingw*-gcc" }
linkoptions {
"-static-libgcc",
"-static-libstdc++",

View File

@ -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 {

View File

@ -493,11 +493,6 @@ function toolchain(_buildDir, _subDir)
configuration { "x32", "mingw-clang" }
objdir ( _buildDir .. "mingw-clang/obj")
buildoptions { "-m32" }
buildoptions {
"-isystem$(MINGW32)/i686-w64-mingw32/include/c++",
"-isystem$(MINGW32)/i686-w64-mingw32/include/c++/i686-w64-mingw32",
"-isystem$(MINGW32)/i686-w64-mingw32/include",
}
configuration { "x32", "mingw-clang", "Release" }
targetdir (_buildDir .. "mingw-clang/bin/x32/Release")
@ -508,11 +503,6 @@ function toolchain(_buildDir, _subDir)
configuration { "x64", "mingw-clang" }
objdir (_buildDir .. "mingw-clang/obj")
buildoptions { "-m64" }
buildoptions {
"-isystem$(MINGW64)/x86_64-w64-mingw32/include/c++",
"-isystem$(MINGW64)/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32",
"-isystem$(MINGW64)/x86_64-w64-mingw32/include",
}
configuration { "x64", "mingw-clang", "Release" }
targetdir (_buildDir .. "mingw-clang/bin/x64/Release")