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

fix version check to prevent useless rebuilds

This commit is contained in:
Nicolas Sauzede 2019-12-28 08:51:08 +01:00 committed by Alexander Medvednikov
parent 4925aa594b
commit c09ce9cb42

View File

@ -48,7 +48,7 @@ ifdef ANDROID
chmod 755 v chmod 755 v
endif 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=7 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)"; \
$(MAKE) selfcompile; \ $(MAKE) selfcompile; \