From b2428290f97e71be33c61c9adbea4e2691155186 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 11 Jun 2020 18:35:41 +0300 Subject: [PATCH] builder: fix a const changing bug that prevented 2 builders --- vlib/v/builder/builder.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/builder/builder.v b/vlib/v/builder/builder.v index 40039de4f3..10e253cf8a 100644 --- a/vlib/v/builder/builder.v +++ b/vlib/v/builder/builder.v @@ -142,7 +142,7 @@ pub fn (mut b Builder) resolve_deps() { // graph of all imported modules pub fn (b &Builder) import_graph() &depgraph.DepGraph { - mut builtins := util.builtin_module_parts + mut builtins := util.builtin_module_parts.clone() builtins << 'builtin' mut graph := depgraph.new_dep_graph() for p in b.parsed_files {