[Premake] Only disable rtti when necessary
This commit is contained in:
parent
baab3c178c
commit
7f5d71150d
@ -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" }
|
||||||
|
Loading…
Reference in New Issue
Block a user