summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-11-01 15:38:38 +0100
committer couriersud <couriersud@gmx.org>2019-11-01 15:38:38 +0100
commitb1246642eb6e3f48f1fe19b7ae6584c1e544e88b (patch)
tree9c45eb7968a305472b392f261b59cd8d5ff9cb7c
parentcca855d24c30d58042a662efa646f4ab380283d2 (diff)
Fix gcc version 5 compile. (nw)
Cross compiling for windows on certain ubuntu versions fails without this.
-rw-r--r--scripts/genie.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 6aa28173b1d..b29e02f9d90 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -93,10 +93,16 @@ end
function addprojectflags()
local version = str_to_version(_OPTIONS["gcc_version"])
if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "gcc") then
- buildoptions_cpp {
- "-Wsuggest-override",
- "-flifetime-dse=1",
- }
+ if version >= 50100 then
+ buildoptions_cpp {
+ "-Wsuggest-override",
+ }
+ end
+ if version >= 60000 then
+ buildoptions_cpp {
+ "-flifetime-dse=1",
+ }
+ end
end
end