summaryrefslogtreecommitdiffstats
path: root/docs/release/scripts/genie.lua
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2022-05-25 12:04:43 +1000
committer Robbbert <Robbbert@users.noreply.github.com>2022-05-25 12:04:43 +1000
commitbb3b24ebe57f00f88d4c4d0fa540f2a913b87625 (patch)
treef14e67ab60e09a5f7ca141d4fbfbf10346e8b87d /docs/release/scripts/genie.lua
parenta196fb975c8343dc5b09a4debc2fcb4da702411e (diff)
***** Some files for 0.244tag244
Diffstat (limited to 'docs/release/scripts/genie.lua')
-rw-r--r--docs/release/scripts/genie.lua42
1 files changed, 28 insertions, 14 deletions
diff --git a/docs/release/scripts/genie.lua b/docs/release/scripts/genie.lua
index faea74ace2e..216e150a4f7 100644
--- a/docs/release/scripts/genie.lua
+++ b/docs/release/scripts/genie.lua
@@ -35,33 +35,37 @@ end
function str_to_version(str)
local val = 0
- if (str == nil or str == '') then
+ if not str then
return val
end
- local cnt = 10000
- for word in string.gmatch(str, '([^.]+)') do
- if(tonumber(word) == nil) then
+ local scale = 10000
+ for word, sep in str:gmatch('([^.-]+)([.-]?)') do
+ local part = tonumber(word)
+ if not part then
+ return val
+ end
+ val = val + tonumber(word) * scale
+ scale = scale // 100
+ if (scale == 0) or (sep ~= '.') then
return val
end
- val = val + tonumber(word) * cnt
- cnt = cnt / 100
end
return val
end
function findfunction(x)
assert(type(x) == "string")
- local f=_G
+ local f = _G
for v in x:gmatch("[^%.]+") do
- if type(f) ~= "table" then
- return nil, "looking for '"..v.."' expected table, not "..type(f)
- end
- f=f[v]
+ if type(f) ~= "table" then
+ return nil, "looking for '" .. v .. "' expected table, not " .. type(f)
+ end
+ f = f[v]
end
if type(f) == "function" then
- return f
+ return f
else
- return nil, "expected function, not "..type(f)
+ return nil, "expected function, not " .. type(f)
end
end
@@ -1059,6 +1063,11 @@ end
"-Wno-xor-used-as-pow", -- clang 10.0 complains that expressions like 10 ^ 7 look like exponention
}
end
+ if version >= 140000 then
+ buildoptions {
+ "-Wno-bitwise-instead-of-logical", -- clang 14.0 complains about &, | on bools in asmjit
+ }
+ end
else
if version < 70000 then
print("GCC version 7.0 or later needed")
@@ -1096,6 +1105,12 @@ end
"-Wno-stringop-overread", -- machine/bbc.cpp in GCC 11.1
}
end
+ if version >= 120000 then
+ buildoptions {
+ "-Wno-error=maybe-uninitialized",
+ "-Wno-error=uninitialized", -- netlist
+ }
+ end
end
end
@@ -1291,7 +1306,6 @@ configuration { "vs20*" }
}
buildoptions {
- "/WX", -- Treats all compiler warnings as errors.
"/w45038", -- warning C5038: data member 'member1' will be initialized after data member 'member2'
}