mirror of
https://github.com/holub/mame
synced 2025-10-04 08:28:39 +03:00
Fix gcc version 5 compile. (nw)
Cross compiling for windows on certain ubuntu versions fails without this.
This commit is contained in:
parent
cca855d24c
commit
b1246642eb
@ -93,10 +93,16 @@ end
|
|||||||
function addprojectflags()
|
function addprojectflags()
|
||||||
local version = str_to_version(_OPTIONS["gcc_version"])
|
local version = str_to_version(_OPTIONS["gcc_version"])
|
||||||
if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "gcc") then
|
if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "gcc") then
|
||||||
buildoptions_cpp {
|
if version >= 50100 then
|
||||||
"-Wsuggest-override",
|
buildoptions_cpp {
|
||||||
"-flifetime-dse=1",
|
"-Wsuggest-override",
|
||||||
}
|
}
|
||||||
|
end
|
||||||
|
if version >= 60000 then
|
||||||
|
buildoptions_cpp {
|
||||||
|
"-flifetime-dse=1",
|
||||||
|
}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user