Fix insertion of allows "os" options.
This commit is contained in:
parent
ca9453c6ca
commit
cc3b49f6d8
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user