diff options
author | 2022-04-28 10:32:34 +1000 | |
---|---|---|
committer | 2022-04-28 10:32:34 +1000 | |
commit | c51f0a55ba99225ff0005bd66663fe063f89b0ca (patch) | |
tree | acc8f26ac2eb2678b86cd5f3c3b17107082665ef /docs/release/scripts/genie.lua | |
parent | e99c413fa133dc919460b6992406e1d48a422238 (diff) |
0.243 filestag243
Diffstat (limited to 'docs/release/scripts/genie.lua')
-rw-r--r-- | docs/release/scripts/genie.lua | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/docs/release/scripts/genie.lua b/docs/release/scripts/genie.lua index 935738bfd9e..faea74ace2e 100644 --- a/docs/release/scripts/genie.lua +++ b/docs/release/scripts/genie.lua @@ -92,7 +92,6 @@ function addprojectflags() if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "gcc") then buildoptions_cpp { "-Wsuggest-override", - "-flifetime-dse=1", } end end @@ -1032,7 +1031,7 @@ end local version = str_to_version(_OPTIONS["gcc_version"]) if string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "asmjs") or string.find(_OPTIONS["gcc"], "android") then - if (version < 60000) then + if version < 60000 then print("Clang version 6.0 or later needed") os.exit(-1) end @@ -1061,23 +1060,28 @@ end } end else - if (version < 70000) then + if version < 70000 then print("GCC version 7.0 or later needed") os.exit(-1) end + buildoptions_cpp { + "-Wimplicit-fallthrough", + } + buildoptions_objcpp { + "-Wimplicit-fallthrough", + } + buildoptions { + "-Wno-unused-result", -- needed for fgets,fread on linux + -- array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds) + "-Wno-array-bounds", + "-Wno-error=attributes", -- GCC fails to recognize some uses of [[maybe_unused]] + } + if version < 100000 then buildoptions_cpp { - "-Wimplicit-fallthrough", + "-flifetime-dse=1", -- GCC 9 takes issue with Sol's get<std::optional<T> >() otherwise } - buildoptions_objcpp { - "-Wimplicit-fallthrough", - } - buildoptions { - "-Wno-unused-result", -- needed for fgets,fread on linux - -- array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds) - "-Wno-array-bounds", - "-Wno-error=attributes", -- GCC fails to recognize some uses of [[maybe_unused]] - } - if (version >= 80000) then + end + if version >= 80000 then buildoptions { "-Wno-stringop-truncation", -- ImGui again "-Wno-stringop-overflow", -- formats/victor9k_dsk.cpp bugs the compiler @@ -1086,7 +1090,7 @@ end "-Wno-class-memaccess", -- many instances in ImGui and BGFX } end - if (version >= 110000) then + if version >= 110000 then buildoptions { "-Wno-nonnull", -- luaengine.cpp lambdas do not need "this" captured but GCC 11.1 erroneously insists "-Wno-stringop-overread", -- machine/bbc.cpp in GCC 11.1 @@ -1218,7 +1222,7 @@ configuration { "android-arm64" } "-Wno-asm-operand-widths", } -configuration { "linux-*"} +configuration { "linux-*" } links { "dl", "rt", |