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:
Ralph Sennhauser 2026-06-06 07:51:59 +02:00
parent 2f2cbb96bf
commit fa254ea193
No known key found for this signature in database

View file

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