[Premake] Only disable rtti when necessary
This commit is contained in:
parent
baab3c178c
commit
7f5d71150d
@ -246,7 +246,6 @@ workspace "iw4x"
|
||||
architecture "x86"
|
||||
platforms "x86"
|
||||
--exceptionhandling ("SEH")
|
||||
rtti ("Off")
|
||||
|
||||
flags { "StaticRuntime" }
|
||||
|
||||
@ -258,6 +257,10 @@ workspace "iw4x"
|
||||
flags { "MultiProcessorCompile", "LinkTimeOptimization", "No64BitChecks" }
|
||||
optimize "On"
|
||||
|
||||
if not _OPTIONS["force-unit-tests"] then
|
||||
rtti ("Off")
|
||||
end
|
||||
|
||||
configuration "Debug*"
|
||||
defines { "DEBUG", "_DEBUG" }
|
||||
flags { "MultiProcessorCompile", "No64BitChecks" }
|
||||
|
Loading…
Reference in New Issue
Block a user