diff options
author | 2016-07-30 18:03:24 +1000 | |
---|---|---|
committer | 2016-07-30 18:03:24 +1000 | |
commit | 159fa2ef9eded291a48670136ec5faa315d84fd1 (patch) | |
tree | 408a87f482e9beb1abbec0eb4d2c4e0461370c79 /scripts/genie.lua | |
parent | 8821dd2733bb452f81507ef49673d601212df12a (diff) |
Attempt to prevent GCC optimising away global_alloc_clear (MT06335)
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index d07ff394ce2..83f484d2984 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -75,10 +75,17 @@ 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", - } + if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "gcc") then + if version >= 50100 then + buildoptions_cpp { + "-Wsuggest-override", + } + end + if version >= 60000 then + buildoptions_cpp { + "-flifetime-dse=1", + } + end end end |