From 93d1cf47ffcbd39055f41f916fd1dd8b249e7fe1 Mon Sep 17 00:00:00 2001 From: Anna Rift Date: Tue, 18 Jun 2024 11:10:04 -0700 Subject: [PATCH] Do setupModuleSearchPaths earlier in testInteractive Signed-off-by: Anna Rift --- frontend/test/resolution/testInteractive.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/test/resolution/testInteractive.cpp b/frontend/test/resolution/testInteractive.cpp index 11e68e310f69..0a6d1cf47c03 100644 --- a/frontend/test/resolution/testInteractive.cpp +++ b/frontend/test/resolution/testInteractive.cpp @@ -290,6 +290,7 @@ int main(int argc, char** argv) { // Run this query first to make the other output more understandable ctx->setDebugTraceFlag(false); + setupSearchPaths(ctx, enableStdLib, cmdLinePaths, files); typeForBuiltin(ctx, UniqueString::get(ctx, "int")); ctx->setDebugTraceFlag(trace); if (timing) ctx->beginQueryTimingTrace(timing); @@ -298,8 +299,6 @@ int main(int argc, char** argv) { flags.set(CompilerFlags::WARN_UNSTABLE, warnUnstable); setCompilerFlags(ctx, std::move(flags)); - setupSearchPaths(ctx, enableStdLib, cmdLinePaths, files); - std::set calledFns; for (auto p: files) {