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

android: support more termux users without make errors

This commit is contained in:
Delyan Angelov 2019-11-29 11:29:37 +02:00 committed by Alexander Medvednikov
parent 9e19472c33
commit 39bc38233a

View File

@ -28,15 +28,20 @@ ifdef WIN32
rm -f v0.exe rm -f v0.exe
else else
$(CC) -std=gnu11 -w -o v vc/v.c $(LDFLAGS) -lm $(CC) -std=gnu11 -w -o v vc/v.c $(LDFLAGS) -lm
ifdef ANDROID
chmod 755 v
endif
@(VC_V=`./v version | cut -f 3 -d " "`; \ @(VC_V=`./v version | cut -f 3 -d " "`; \
V_V=`git rev-parse --short HEAD`; \ V_V=`git rev-parse --short HEAD`; \
if [ $$VC_V != $$V_V ]; then \ if [ $$VC_V != $$V_V ]; then \
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)
ifndef ANDROID
./v build module vlib/builtin > /dev/null ./v build module vlib/builtin > /dev/null
./v build module vlib/strings > /dev/null ./v build module vlib/strings > /dev/null
./v build module vlib/strconv > /dev/null ./v build module vlib/strconv > /dev/null
endif
endif endif
rm -rf vc/ rm -rf vc/
@echo "V has been successfully built" @echo "V has been successfully built"