v.util, v.builder: fix util.module_is_builtin on macos with -usecache
parent
4ffdcf8058
commit
dc30089c74
|
@ -211,7 +211,7 @@ fn (mut b Builder) handle_usecache(vexe string) {
|
|||
// strconv is already imported inside builtin, so skip generating its object file
|
||||
// TODO: incase we have other modules with the same name, make sure they are vlib
|
||||
// is this even doign anything?
|
||||
if imp in ['strconv', 'strings', 'dlmalloc'] {
|
||||
if util.module_is_builtin(imp) {
|
||||
continue
|
||||
}
|
||||
if imp in built_modules {
|
||||
|
|
|
@ -37,12 +37,8 @@ const (
|
|||
]
|
||||
)
|
||||
|
||||
const builtin_module_names = ['builtin', 'strconv', 'strings', 'dlmalloc', 'math']
|
||||
|
||||
pub fn module_is_builtin(mod string) bool {
|
||||
// NOTE: using util.builtin_module_parts here breaks -usecache on macos
|
||||
return mod in util.builtin_module_names
|
||||
// return mod in util.builtin_module_parts
|
||||
return mod in util.builtin_module_parts
|
||||
}
|
||||
|
||||
pub fn tabs(n int) string {
|
||||
|
|
Loading…
Reference in New Issue