[Premake] Only disable rtti when necessary

This commit is contained in:
momo5502 2018-11-16 22:29:14 +01:00
parent baab3c178c
commit 7f5d71150d

View File

@ -246,7 +246,6 @@ workspace "iw4x"
architecture "x86" architecture "x86"
platforms "x86" platforms "x86"
--exceptionhandling ("SEH") --exceptionhandling ("SEH")
rtti ("Off")
flags { "StaticRuntime" } flags { "StaticRuntime" }
@ -258,6 +257,10 @@ workspace "iw4x"
flags { "MultiProcessorCompile", "LinkTimeOptimization", "No64BitChecks" } flags { "MultiProcessorCompile", "LinkTimeOptimization", "No64BitChecks" }
optimize "On" optimize "On"
if not _OPTIONS["force-unit-tests"] then
rtti ("Off")
end
configuration "Debug*" configuration "Debug*"
defines { "DEBUG", "_DEBUG" } defines { "DEBUG", "_DEBUG" }
flags { "MultiProcessorCompile", "No64BitChecks" } flags { "MultiProcessorCompile", "No64BitChecks" }