builder: temp macos self -usecache fix (will break -usecache with ~/.vmodules/ui)

pull/7366/head
joe-conigliaro 2020-12-17 16:46:20 +11:00
parent f2f32626bc
commit 40bad75a8f
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1
1 changed files with 6 additions and 5 deletions

View File

@ -395,11 +395,12 @@ fn (mut v Builder) cc() {
// if os.is_dir(af_base_dir + os.path_separator + mod_path) {
// continue
// }
// imp_path := os.join_path('vlib', mod_path)
imp_path := v.find_module_path(imp, ast_file.path) or {
verror('cannot import module "$imp" (not found)')
break
}
mod_path := imp.replace('.', os.path_separator)
imp_path := os.join_path('vlib', mod_path)
//imp_path := v.find_module_path(imp, ast_file.path) or {
// verror('cannot import module "$imp" (not found)')
// break
//}
obj_path := v.rebuild_cached_module(vexe, imp_path)
libs += ' ' + obj_path
if obj_path.ends_with('vlib/ui.o') {