mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Add support for premake-5.0.0-beta8
"flags" where deprecated and replaced by dedicated functions. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
parent
2f2cbb96bf
commit
fa254ea193
1 changed files with 12 additions and 2 deletions
|
|
@ -298,7 +298,12 @@ function project_set_build_flags()
|
|||
-- various platform-specific build flags
|
||||
if os.istarget("windows") then
|
||||
|
||||
flags { "MultiProcessorCompile" }
|
||||
if multiprocessorcompile ~= nil then
|
||||
-- since 5.0.0-beta8
|
||||
multiprocessorcompile("On")
|
||||
else
|
||||
flags { "MultiProcessorCompile" }
|
||||
end
|
||||
|
||||
-- Since KB4088875 Windows 7 has a soft requirement for SSE2.
|
||||
-- Windows 8+ and Firefox ESR52 make it hard requirement.
|
||||
|
|
@ -575,7 +580,12 @@ function project_add_contents(source_root, rel_source_dirs, rel_include_dirs, ex
|
|||
files { pch_dir.."precompiled.h", pch_dir.."precompiled.cpp" }
|
||||
else
|
||||
defines { "CONFIG_ENABLE_PCH=0" }
|
||||
flags { "NoPCH" }
|
||||
if enablepch ~= nil then
|
||||
-- since 5.0.0-beta8
|
||||
enablepch("Off")
|
||||
else
|
||||
flags { "NoPCH" }
|
||||
end
|
||||
end
|
||||
|
||||
-- next is source root dir, for absolute (nonrelative) includes
|
||||
|
|
|
|||
Loading…
Reference in a new issue