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

all: enable -gc boehm by default (#14577)

This commit is contained in:
spaceface
2022-06-08 23:44:29 +02:00
committed by GitHub
parent e6580fefaa
commit 4ed9780b80
13 changed files with 62 additions and 25 deletions

View File

@@ -55,7 +55,14 @@ pub fn new_cache_manager(opts []string) CacheManager {
os.write_file(readme_file, readme_content) or { panic(err) }
dlog(@FN, 'created readme_file:\n $readme_file')
}
original_vopts := opts.join('|')
mut deduped_opts := map[string]bool{}
for o in opts {
deduped_opts[o] = true
}
deduped_opts_keys := deduped_opts.keys().filter(it != '' && !it.starts_with("['gcboehm', "))
// TODO: do not filter the gcboehm options here, instead just start `v build-module vlib/builtin` without the -d gcboehm etc.
// Note: the current approach of filtering the gcboehm keys may interfere with (potential) other gc modes.
original_vopts := deduped_opts_keys.join('|')
return CacheManager{
basepath: vcache_basepath
vopts: original_vopts