builder: don't pass -usecache linker flags when building modules

pull/7424/head
joe-conigliaro 2020-12-20 18:23:54 +11:00
parent 60c936a688
commit 12d5720841
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ fn (mut v Builder) cc() {
args << '-w'
}
// TODO: why is this duplicated from above?
if v.pref.use_cache {
if v.pref.use_cache && v.pref.build_mode != .build_module {
// vexe := pref.vexe_path()
// cached_modules := ['builtin', 'os', 'math', 'strconv', 'strings', 'hash'], // , 'strconv.ftoa']
// for cfile in cached_modules {