Fix insertion of allows "os" options.

This commit is contained in:
Tom van Dijck 2017-07-31 16:44:44 -07:00
parent ca9453c6ca
commit cc3b49f6d8

View File

@ -25,9 +25,9 @@
premake.action._list["vs2017"].valid_kinds = table.join(premake.action._list["vs2017"].valid_kinds, { p.ANDROIDPROJ })
-- TODO: can I api.addAllowed() a key-value pair?
local os = p.fields["os"];
local os = p.option.get("os")
if os ~= nil then
table.insert(sys.allowed, { "android", "Android" })
table.insert(os.allowed, { "android", "Android" })
end