Premake: Fix a few issues (using deprecated functionality, hard to change toolset, disable lzcnt)
This commit is contained in:
parent
ddfc9e90d8
commit
99078fffbd
15
premake5.lua
15
premake5.lua
|
@ -19,11 +19,15 @@ defines({
|
||||||
"GLEW_NO_GLU=1",
|
"GLEW_NO_GLU=1",
|
||||||
})
|
})
|
||||||
|
|
||||||
vectorextensions("AVX")
|
-- TODO(DrChat): Find a way to disable this on other architectures.
|
||||||
|
filter("architecture:x86_64")
|
||||||
|
vectorextensions("AVX")
|
||||||
|
filter({})
|
||||||
|
|
||||||
|
characterset("Unicode")
|
||||||
flags({
|
flags({
|
||||||
--"ExtraWarnings", -- Sets the compiler's maximum warning level.
|
--"ExtraWarnings", -- Sets the compiler's maximum warning level.
|
||||||
"FatalWarnings", -- Treat warnings as errors.
|
"FatalWarnings", -- Treat warnings as errors.
|
||||||
"Unicode",
|
|
||||||
})
|
})
|
||||||
|
|
||||||
filter("kind:StaticLib")
|
filter("kind:StaticLib")
|
||||||
|
@ -74,13 +78,13 @@ filter("platforms:Linux")
|
||||||
system("linux")
|
system("linux")
|
||||||
toolset("clang")
|
toolset("clang")
|
||||||
buildoptions({
|
buildoptions({
|
||||||
"-mlzcnt", -- Assume lzcnt supported.
|
-- "-mlzcnt", -- (don't) Assume lzcnt is supported.
|
||||||
})
|
})
|
||||||
links({
|
links({
|
||||||
"pthread",
|
"pthread",
|
||||||
})
|
})
|
||||||
|
|
||||||
filter({"platforms:Linux", "language:C++"})
|
filter({"platforms:Linux", "language:C++", "toolset:clang"})
|
||||||
buildoptions({
|
buildoptions({
|
||||||
"-std=c++14",
|
"-std=c++14",
|
||||||
"-stdlib=libc++",
|
"-stdlib=libc++",
|
||||||
|
@ -103,8 +107,9 @@ filter("platforms:Windows")
|
||||||
})
|
})
|
||||||
flags({
|
flags({
|
||||||
"NoMinimalRebuild", -- Required for /MP above.
|
"NoMinimalRebuild", -- Required for /MP above.
|
||||||
"Symbols",
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
symbols("On")
|
||||||
defines({
|
defines({
|
||||||
"_CRT_NONSTDC_NO_DEPRECATE",
|
"_CRT_NONSTDC_NO_DEPRECATE",
|
||||||
"_CRT_SECURE_NO_WARNINGS",
|
"_CRT_SECURE_NO_WARNINGS",
|
||||||
|
|
Loading…
Reference in New Issue