From f7c7ffecb33e634b02fd0e52113bd05a1327510b Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 18 Nov 2019 03:51:14 +0300 Subject: [PATCH] makefile: pre-build builtin modules --- Makefile | 3 +++ vlib/compiler/module_header.v | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 29335c0474..e453ea746e 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,9 @@ else echo "Self rebuild ($$VC_V => $$V_V)"; \ ./v -o v v.v; \ fi) + ./v build module vlib/builtin + ./v build module vlib/strings + ./v build module vlib/strconv endif rm -rf vc/ @echo "V has been successfully built" diff --git a/vlib/compiler/module_header.v b/vlib/compiler/module_header.v index 70ecc0e1ac..07e39fbc3e 100644 --- a/vlib/compiler/module_header.v +++ b/vlib/compiler/module_header.v @@ -54,9 +54,10 @@ fn generate_vh(mod string) { !it.ends_with('_lin.v') && !it.contains('${os.path_separator}examples') && !it.contains('_js.v') && + !it.contains('_bare.v') && !it.contains('${os.path_separator}js')) // TODO merge once filter allows it - println('f:') - println(filtered) + //println('f:') + //println(filtered) mut v := new_v(['foo.v']) //v.pref.generating_vh = true mut g := VhGen{ @@ -102,7 +103,7 @@ fn (g mut VhGen) generate_fn() { } if next.tok == .name && next.lit == 'C' { - println('skipping C') + //println('skipping C') return } //out.write('pub ')