diff options
Diffstat (limited to 'emulators/mame/patches/patch-scripts_genie.lua')
-rw-r--r-- | emulators/mame/patches/patch-scripts_genie.lua | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/emulators/mame/patches/patch-scripts_genie.lua b/emulators/mame/patches/patch-scripts_genie.lua index 1372420559f..f7509f3d767 100644 --- a/emulators/mame/patches/patch-scripts_genie.lua +++ b/emulators/mame/patches/patch-scripts_genie.lua @@ -1,4 +1,4 @@ -$NetBSD: patch-scripts_genie.lua,v 1.3 2016/04/29 08:30:50 wiz Exp $ +$NetBSD: patch-scripts_genie.lua,v 1.4 2016/09/02 12:22:46 wiz Exp $ Precompilation is broken on NetBSD with gcc-5.3. Use GNU version of the C++ standard to avoid trouble with alloca on NetBSD. @@ -45,47 +45,3 @@ Detect clang correctly. } end -- this speeds it up a bit by piping between the preprocessor/compiler/assembler -@@ -950,7 +945,17 @@ end - - - local version = str_to_version(_OPTIONS["gcc_version"]) -- if string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "pnacl") or string.find(_OPTIONS["gcc"], "asmjs") or string.find(_OPTIONS["gcc"], "android") then -+ if _OPTIONS["clang_version"] == "" then -+ if (version < 40900) then -+ print("GCC version 4.9 or later needed") -+ os.exit(-1) -+ end -+ 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", -+ } -+ else - if (version < 30400) then - print("Clang version 3.4 or later needed") - os.exit(-1) -@@ -963,7 +968,6 @@ end - "-Wno-inline-new-delete", - "-Wno-constant-logical-operand", - "-Wno-deprecated-register", -- "-fdiagnostics-show-note-include-stack", - } - if (version >= 30500) then - buildoptions { -@@ -977,16 +981,6 @@ end - "-Wno-tautological-undefined-compare", - } - end -- else -- if (version < 40900) then -- print("GCC version 4.9 or later needed") -- os.exit(-1) -- end -- 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", -- } - end - end - |