v.pref: only show the `disabling parallel cgen` message when -no-parallel was not given and -prealloc was

pull/12012/head
Delyan Angelov 2021-09-28 11:52:16 +03:00
parent 975550f912
commit 8f4fe61381
1 changed files with 3 additions and 1 deletions

View File

@ -137,7 +137,9 @@ pub fn (mut p Preferences) fill_with_defaults() {
p.bare_builtin_dir = os.join_path(p.vroot, 'vlib', 'builtin', 'linux_bare')
}
$if prealloc {
if !p.no_parallel {
eprintln('disabling parallel cgen, since V was built with -prealloc')
}
p.no_parallel = true
}
}