From 8f4fe613819fac5d7a98f97aefe80aaab1ade035 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 28 Sep 2021 11:52:16 +0300 Subject: [PATCH] v.pref: only show the `disabling parallel cgen` message when -no-parallel was not given and -prealloc was --- vlib/v/pref/default.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vlib/v/pref/default.v b/vlib/v/pref/default.v index 0b0f64d857..1f0cc41453 100644 --- a/vlib/v/pref/default.v +++ b/vlib/v/pref/default.v @@ -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 } }