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

make: use git clone --filter=blob:none for vc/ and thirdparty/tcc/ , which minimises the amount of transferred data (especially for doing v up after a few weeks/months)

This commit is contained in:
Delyan Angelov 2023-02-02 18:33:34 +02:00
parent b5b1efbb7b
commit a8102f14be
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ TMPLEGACY := $(LEGACYLIBS)/source
TCCOS := unknown TCCOS := unknown
TCCARCH := unknown TCCARCH := unknown
GITCLEANPULL := git clean -xf && git pull --quiet GITCLEANPULL := git clean -xf && git pull --quiet
GITFASTCLONE := git clone --depth 1 --quiet --single-branch GITFASTCLONE := git clone --filter=blob:none --quiet
#### Platform detections and overrides: #### Platform detections and overrides:
_SYS := $(shell uname 2>/dev/null || echo Unknown) _SYS := $(shell uname 2>/dev/null || echo Unknown)

View File

@ -337,14 +337,14 @@ exit /b 0
echo Bootstrapping TCC... echo Bootstrapping TCC...
echo ^> TCC not found echo ^> TCC not found
if "!tcc_branch!" == "thirdparty-windows-i386" ( echo ^> Downloading TCC32 from !tcc_url! , branch !tcc_branch! ) else ( echo ^> Downloading TCC64 from !tcc_url! , branch !tcc_branch! ) if "!tcc_branch!" == "thirdparty-windows-i386" ( echo ^> Downloading TCC32 from !tcc_url! , branch !tcc_branch! ) else ( echo ^> Downloading TCC64 from !tcc_url! , branch !tcc_branch! )
git clone --depth 1 --quiet --single-branch --branch !tcc_branch! !tcc_url! "%tcc_dir%" git clone --filter=blob:none --quiet --branch !tcc_branch! !tcc_url! "%tcc_dir%"
git --no-pager -C "%tcc_dir%" log -n3 git --no-pager -C "%tcc_dir%" log -n3
exit /b 0 exit /b 0
:cloning_vc :cloning_vc
echo Cloning vc... echo Cloning vc...
echo ^> Cloning from remote !vc_url! echo ^> Cloning from remote !vc_url!
git clone --depth 1 --quiet "%vc_url%" git clone --filter=blob:none --quiet "%vc_url%"
exit /b 0 exit /b 0
:eof :eof