summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-06 17:07:50 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-06 17:07:50 +0100
commit6a765a95ecbd957fc95687e5a63b546cd6ae5b97 (patch)
treeaea0fbeceeba8af92f549bdb42ee0c015abd1dec /scripts/genie.lua
parent3afd02d896139b07d074d9e66698779e698c87b0 (diff)
Added addprojectflags function and added -Wsuggest-override for all that are not 3rdparty projects.
It is place where all additional checks we should put
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index eadf2821e50..c9e2aeac3fc 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -53,6 +53,15 @@ function layoutbuildtask(_folder, _name)
{ MAME_DIR .. "scripts/build/file2str.py" }, {"@echo Converting src/".._folder.."/".._name..".lay...", PYTHON .. " $(1) $(<) $(@) layout_".._name }};
end
+function addprojectflags()
+ local version = str_to_version(_OPTIONS["gcc_version"])
+ if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "gcc") and (version >= 50100) then
+ buildoptions_cpp {
+ "-Wsuggest-override",
+ }
+ end
+end
+
CPUS = {}
SOUNDS = {}
MACHINES = {}