diff --git a/scripts/xmake_test.lua b/scripts/xmake_test.lua index e93cbeaa..cb2816b8 100644 --- a/scripts/xmake_test.lua +++ b/scripts/xmake_test.lua @@ -827,7 +827,12 @@ task("test") -- directory, so the archive only lands where this run looks for it from inside the project. local function buildNativeArchive() local project = os.projectdir() - os.execv("xmake", {"build", "-P", project, "ens-llvm"}, {curdir = project}) + local argv = {"build", "-P", project} + if option.get("yes") or not io.stdin:isatty() then + table.insert(argv, "-y") + end + table.insert(argv, "ens-llvm") + os.execv("xmake", argv, {curdir = project}) if not os.isfile(native_archive) then os.raise("Could not locate the native archive at " .. native_archive) end