1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

msvc: unique names for pdb files, remove test job limit

This commit is contained in:
Emily Hudson
2020-06-26 16:16:15 +01:00
committed by GitHub
parent c83c5e7c61
commit 09236a438b
3 changed files with 10 additions and 11 deletions

View File

@ -96,14 +96,6 @@ pub fn (mut ts TestSession) test() {
mtx: sync.new_mutex()
}
pool_of_test_runners.set_shared_context(ts)
$if msvc {
// NB: MSVC can not be launched in parallel, without giving it
// the option /FS because it uses a shared PDB file, which should
// be locked, but that makes writing slower...
// See: https://docs.microsoft.com/en-us/cpp/build/reference/fs-force-synchronous-pdb-writes?view=vs-2019
// Instead, just run tests on 1 core for now.
pool_of_test_runners.set_max_jobs(1)
}
pool_of_test_runners.work_on_pointers(remaining_files.pointers())
ts.benchmark.stop()
eprintln(term.h_divider('-'))