move tags into globally accesible table, so we don't have to overload the getSystemTags method all over the place.
This commit is contained in:
parent
bf1ea2445f
commit
7b3b2fa31b
@ -720,8 +720,7 @@
|
|||||||
-- Get a set of tags for different 'platforms'
|
-- Get a set of tags for different 'platforms'
|
||||||
--
|
--
|
||||||
|
|
||||||
function os.getSystemTags(name)
|
os.systemTags =
|
||||||
local tags =
|
|
||||||
{
|
{
|
||||||
["aix"] = { "aix", "posix" },
|
["aix"] = { "aix", "posix" },
|
||||||
["bsd"] = { "bsd", "posix" },
|
["bsd"] = { "bsd", "posix" },
|
||||||
@ -731,5 +730,7 @@
|
|||||||
["solaris"] = { "solaris", "posix" },
|
["solaris"] = { "solaris", "posix" },
|
||||||
["windows"] = { "windows", "win32" },
|
["windows"] = { "windows", "win32" },
|
||||||
}
|
}
|
||||||
return tags[name] or name
|
|
||||||
|
function os.getSystemTags(name)
|
||||||
|
return os.systemTags[name] or name
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user