From 6914763493574c650d03f612e0783f10171cbfc3 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 22 Nov 2021 16:46:28 +0200 Subject: [PATCH] vc: reduce further the average vc commit diff size --- vlib/v/pref/default.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/v/pref/default.v b/vlib/v/pref/default.v index 46f3147db2..86dbba9362 100644 --- a/vlib/v/pref/default.v +++ b/vlib/v/pref/default.v @@ -110,8 +110,9 @@ pub fn (mut p Preferences) fill_with_defaults() { } // Prepare the cache manager. All options that can affect the generated cached .c files // should go into res.cache_manager.vopts, which is used as a salt for the cache hash. + vhash := @VHASH p.cache_manager = vcache.new_cache_manager([ - @VHASH, + vhash, // ensure that different v versions use separate build artefacts '$p.backend | $p.os | $p.ccompiler | $p.is_prod | $p.sanitize', p.cflags.trim_space(),