mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
compiler: generalize mod dag & use for sorting structs also
This commit is contained in:
parent
db110759ab
commit
b4d033ff54
5 changed files with 200 additions and 175 deletions
|
@ -577,7 +577,7 @@ fn (v mut V) add_v_files_to_compile() {
|
|||
println(v.table.imports)
|
||||
}
|
||||
// graph deps
|
||||
mut dep_graph := new_mod_dep_graph()
|
||||
mut dep_graph := new_dep_graph()
|
||||
dep_graph.from_import_tables(v.table.file_imports)
|
||||
deps_resolved := dep_graph.resolve()
|
||||
if !deps_resolved.acyclic {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue