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:
parent
4925aa594b
commit
c09ce9cb42
2
Makefile
2
Makefile
@ -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; \
|
||||||
|
Loading…
Reference in New Issue
Block a user