Rename debug flags, premake recognizes them as '--debug' and enables debug mode in release configurations

This commit is contained in:
momo5502 2016-08-14 15:17:30 +02:00
parent 768bc2bd2c
commit b3b74bf1f4

View File

@ -16,12 +16,12 @@ newoption {
} }
newoption { newoption {
trigger = "debug-detections", trigger = "ac-debug-detections",
description = "Log anticheat detections." description = "Log anticheat detections."
} }
newoption { newoption {
trigger = "debug-load-library", trigger = "ac-debug-load-library",
description = "Log libraries that get loaded." description = "Log libraries that get loaded."
} }
@ -210,10 +210,10 @@ workspace "iw4x"
} }
-- Debug flags -- Debug flags
if _OPTIONS["debug-detections"] then if _OPTIONS["ac-debug-detections"] then
defines { "DEBUG_DETECTIONS" } defines { "DEBUG_DETECTIONS" }
end end
if _OPTIONS["debug-load-library"] then if _OPTIONS["ac-debug-load-library"] then
defines { "DEBUG_LOAD_LIBRARY" } defines { "DEBUG_LOAD_LIBRARY" }
end end
if _OPTIONS["force-unit-tests"] then if _OPTIONS["force-unit-tests"] then