archs.lua 506 B

123456789101112131415161718192021
  1. -- imports
  2. import("core.project.config")
  3. import("core.platform.platform")
  4. -- main entry
  5. function main (plat)
  6. config.load()
  7. local archs = platform.archs(plat or config.get("plat"))
  8. -- denote the start of vscode information to ignore anything logging to stdout before this point
  9. print("__begin__")
  10. if archs then
  11. for _, arch in ipairs(archs) do
  12. print(arch)
  13. end
  14. end
  15. -- print end tag to ignore other deprecated/warnings infos
  16. print("__end__")
  17. end