cmd/pref: disable -usecache on windows & enable by default (commented)

pull/7430/head^2
joe-conigliaro 2020-12-21 03:31:57 +11:00
parent dd5b25a9f2
commit 23bfbf1665
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1
2 changed files with 7 additions and 0 deletions

View File

@ -72,6 +72,10 @@ fn main() {
// println('prefs= ')
// println(prefs) // QTODO
}
if prefs.use_cache && os.user_os() == 'windows' {
eprintln('-usecache is currently disabled on windows')
exit(1)
}
if command == 'test-vet' {
println('Please use `v test-cleancode` instead.')
return

View File

@ -93,6 +93,9 @@ pub fn (mut p Preferences) fill_with_defaults() {
'$p.lookup_path',
])
// eprintln('prefs.cache_manager: $p')
//
// enable use_cache by default
// p.use_cache = os.user_os() != 'windows'
}
fn (mut p Preferences) try_to_use_tcc_by_default() {