makefile: pre-build builtin modules
parent
e081791eaf
commit
f7c7ffecb3
3
Makefile
3
Makefile
|
@ -29,6 +29,9 @@ else
|
||||||
echo "Self rebuild ($$VC_V => $$V_V)"; \
|
echo "Self rebuild ($$VC_V => $$V_V)"; \
|
||||||
./v -o v v.v; \
|
./v -o v v.v; \
|
||||||
fi)
|
fi)
|
||||||
|
./v build module vlib/builtin
|
||||||
|
./v build module vlib/strings
|
||||||
|
./v build module vlib/strconv
|
||||||
endif
|
endif
|
||||||
rm -rf vc/
|
rm -rf vc/
|
||||||
@echo "V has been successfully built"
|
@echo "V has been successfully built"
|
||||||
|
|
|
@ -54,9 +54,10 @@ fn generate_vh(mod string) {
|
||||||
!it.ends_with('_lin.v') &&
|
!it.ends_with('_lin.v') &&
|
||||||
!it.contains('${os.path_separator}examples') &&
|
!it.contains('${os.path_separator}examples') &&
|
||||||
!it.contains('_js.v') &&
|
!it.contains('_js.v') &&
|
||||||
|
!it.contains('_bare.v') &&
|
||||||
!it.contains('${os.path_separator}js')) // TODO merge once filter allows it
|
!it.contains('${os.path_separator}js')) // TODO merge once filter allows it
|
||||||
println('f:')
|
//println('f:')
|
||||||
println(filtered)
|
//println(filtered)
|
||||||
mut v := new_v(['foo.v'])
|
mut v := new_v(['foo.v'])
|
||||||
//v.pref.generating_vh = true
|
//v.pref.generating_vh = true
|
||||||
mut g := VhGen{
|
mut g := VhGen{
|
||||||
|
@ -102,7 +103,7 @@ fn (g mut VhGen) generate_fn() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if next.tok == .name && next.lit == 'C' {
|
if next.tok == .name && next.lit == 'C' {
|
||||||
println('skipping C')
|
//println('skipping C')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//out.write('pub ')
|
//out.write('pub ')
|
||||||
|
|
Loading…
Reference in New Issue