Compilation: don't queue std analysis twice when testing std

This commit is contained in:
mlugg 2024-08-13 19:47:12 +01:00 committed by Jacob Young
parent 8f8fe89276
commit 4e5834a9f2

View File

@ -2269,7 +2269,7 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) !void {
try comp.queueJob(.{ .analyze_mod = std_mod });
zcu.analysis_roots.appendAssumeCapacity(std_mod);
if (comp.config.is_test) {
if (comp.config.is_test and zcu.main_mod != std_mod) {
try comp.queueJob(.{ .analyze_mod = zcu.main_mod });
zcu.analysis_roots.appendAssumeCapacity(zcu.main_mod);
}