Skip to content

Commit

Permalink
Do setupModuleSearchPaths earlier in testInteractive
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <[email protected]>
  • Loading branch information
riftEmber committed Jun 18, 2024
1 parent e40f4cc commit 93d1cf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/test/resolution/testInteractive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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<const ResolvedFunction*> calledFns;

for (auto p: files) {
Expand Down

0 comments on commit 93d1cf4

Please sign in to comment.