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