summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index e30795b5baa..c752efdc243 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -279,6 +279,16 @@ newoption {
description = "Python executable.",
}
+newoption {
+ trigger = "SHADOW_CHECK",
+ description = "Shadow checks.",
+ allowed = {
+ { "0", "Disabled" },
+ { "1", "Enabled" },
+ }
+}
+
+
PYTHON = "python"
if _OPTIONS["PYTHON_EXECUTABLE"]~=nil then
@@ -832,6 +842,11 @@ end
}
end
else
+ if (_OPTIONS["SHADOW_CHECK"]=="1") then
+ buildoptions {
+ "-Wshadow"
+ }
+ end
if (version == 40201) then
buildoptions {
"-Wno-cast-align"