mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-21 14:02:24 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user