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

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

This commit is contained in:
Delyan Angelov 2021-09-28 11:52:16 +03:00
parent 975550f912
commit 8f4fe61381

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 {
eprintln('disabling parallel cgen, since V was built with -prealloc')
if !p.no_parallel {
eprintln('disabling parallel cgen, since V was built with -prealloc')
}
p.no_parallel = true
}
}