builder: temp macos self -usecache fix (will break -usecache with ~/.vmodules/ui)
parent
f2f32626bc
commit
40bad75a8f
|
@ -395,11 +395,12 @@ fn (mut v Builder) cc() {
|
||||||
// if os.is_dir(af_base_dir + os.path_separator + mod_path) {
|
// if os.is_dir(af_base_dir + os.path_separator + mod_path) {
|
||||||
// continue
|
// continue
|
||||||
// }
|
// }
|
||||||
// imp_path := os.join_path('vlib', mod_path)
|
mod_path := imp.replace('.', os.path_separator)
|
||||||
imp_path := v.find_module_path(imp, ast_file.path) or {
|
imp_path := os.join_path('vlib', mod_path)
|
||||||
verror('cannot import module "$imp" (not found)')
|
//imp_path := v.find_module_path(imp, ast_file.path) or {
|
||||||
break
|
// verror('cannot import module "$imp" (not found)')
|
||||||
}
|
// break
|
||||||
|
//}
|
||||||
obj_path := v.rebuild_cached_module(vexe, imp_path)
|
obj_path := v.rebuild_cached_module(vexe, imp_path)
|
||||||
libs += ' ' + obj_path
|
libs += ' ' + obj_path
|
||||||
if obj_path.ends_with('vlib/ui.o') {
|
if obj_path.ends_with('vlib/ui.o') {
|
||||||
|
|
Loading…
Reference in New Issue