From 9b0bb2f72c8d631752236ef8bd551394f6905f68 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 4 Jul 2019 20:42:16 +0200 Subject: [PATCH] make.bat for easier compilation on Windows --- compiler/parser.v | 3 +-- make.bat | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 make.bat diff --git a/compiler/parser.v b/compiler/parser.v index 0dad4dc1d8..2193733404 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -659,7 +659,6 @@ fn (p mut Parser) check(expected Token) { } fn (p mut Parser) error(s string) { -//q := "SDF" // Dump all vars and types for debugging if false { //file_types := os.create('$TmpPath/types') @@ -671,7 +670,7 @@ fn (p mut Parser) error(s string) { //file_types.close() //file_vars.close() } - if !p.pref.is_repl { + if p.pref.is_verbose { println('pass=$p.run fn=`$p.cur_fn.name`') } p.cgen.save() diff --git a/make.bat b/make.bat new file mode 100644 index 0000000000..8cf2671fc2 --- /dev/null +++ b/make.bat @@ -0,0 +1,3 @@ +curl -O https://raw.githubusercontent.com/vlang/vc/master/v.c +gcc -std=gnu11 -w -o v.exe v.c +del v.c