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

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

This commit is contained in:
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

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 {