vc: reduce further the average vc commit diff size

pull/12550/head
Delyan Angelov 2021-11-22 16:46:28 +02:00
parent 1bbbba5813
commit 6914763493
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 2 additions and 1 deletions

View File

@ -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(),