From e7e05143797e6117669cd6f18e3b0b27a52b8435 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 10 Oct 2019 23:20:41 +0300 Subject: [PATCH] no longer download vlib if it's missing --- .github/workflows/ci.yml | 1 + compiler/main.v | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03c1fcd9e4..dc810fb000 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,6 +55,7 @@ jobs: VFLAGS: -cc tcc run: | tcc -version + ./v -o v2 compiler # Make sure vtcc can build itself ./v test v build-windows-gcc: diff --git a/compiler/main.v b/compiler/main.v index 742a25577d..996d03020f 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -857,24 +857,23 @@ fn new_v(args[]string) &V { case 'solaris': _os = .solaris } } - //println('OS=$_os') - // Location of all vlib files vroot := os.dir(os.executable()) //println('VROOT=$vroot') // v.exe's parent directory should contain vlib if !os.dir_exists(vroot) || !os.dir_exists(vroot + '/vlib/builtin') { println('vlib not found, downloading it...') + /* ret := os.system('git clone --depth=1 https://github.com/vlang/v .') if ret != 0 { println('failed to `git clone` vlib') println('make sure you are online and have git installed') exit(1) } - - //println('vlib not found. It should be next to the V executable. ') - //println('Go to https://vlang.io to install V.') - //exit(1) + */ + println('vlib not found. It should be next to the V executable. ') + println('Go to https://vlang.io to install V.') + exit(1) } //println('out_name:$out_name') mut out_name_c := os.realpath('${out_name}.tmp.c')