mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.util, v.builder: fix util.module_is_builtin on macos with -usecache
This commit is contained in:
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
Block a user