diff --git a/scripts/packages.lua b/scripts/packages.lua index d6060cc6e..81314afe8 100644 --- a/scripts/packages.lua +++ b/scripts/packages.lua @@ -11,6 +11,10 @@ function is_supported(instance, plat, arch, opt) local script = instance:get(instance:is_fetchonly() and "fetch" or "install") if not select_script(script, {plat = plat, arch = arch}) then + if opt.native and select_script(script, { + plat = plat, arch = arch, subhost = plat, subarch = arch}) then + return true + end return false end return true @@ -29,6 +33,7 @@ end -- the main entry function main(opt) + opt = opt or {} local packages = {} for _, packagedir in ipairs(os.dirs(path.join("packages", "*", "*"))) do local packagename = path.filename(packagedir)