1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: support passing -cc to specify the desired C compiler

This commit is contained in:
Delyan Angelov
2019-08-23 11:42:48 +03:00
committed by Alexander Medvednikov
parent df593870ae
commit d362f73af8
4 changed files with 35 additions and 20 deletions

View File

@@ -2,10 +2,11 @@ CC ?= cc
PREFIX ?= /usr/local
all:
rm -rf vc/
git clone --depth 1 --quiet https://github.com/vlang/vc
${CC} -std=gnu11 -w -o v vc/v.c -lm
./v -o v compiler
rm -rf vc
rm -rf vc/
@echo "V has been successfully built"
symlink: v