We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d941cd commit 90ce53aCopy full SHA for 90ce53a
compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -745,6 +745,9 @@ LLVMRustOptimize(
745
if (InstrProfileOutput) {
746
Options.InstrProfileOutput = InstrProfileOutput;
747
}
748
+ // cargo run tests in multhreading mode by default
749
+ // so use atomics for coverage counters
750
+ Options.Atomic = true;
751
MPM.addPass(InstrProfiling(Options, false));
752
753
);
0 commit comments