Support Bazel HTTP cache

This commit is contained in:
Ali 2020-10-15 00:18:18 +04:00
parent f5a552ce96
commit 04fbe1832d

View File

@ -46,7 +46,10 @@ BUCK_OPTIONS=\
BAZEL=$(shell which bazel)
ifneq ($(BAZEL_CACHE_DIR),)
ifneq ($(BAZEL_HTTP_CACHE_URL),)
export BAZEL_CACHE_FLAGS=\
--remote_cache="$(BAZEL_HTTP_CACHE_URL)"
else ifneq ($(BAZEL_CACHE_DIR),)
export BAZEL_CACHE_FLAGS=\
--disk_cache="${BAZEL_CACHE_DIR}"
endif