ccache: Only pass --ccache-dir when --ccache is used
We are not hiding the arguments from Bazel (yet?),
so changing the --ccache-dir would ccache bust.
Instead we pass --ccache-dir when --cache is not set only
in ebuild_debug, to let people toggle ccache on the
ebuild_debug script.
BUG=b:308409836
TEST=flipping --//bazel/portage:ccache doest not rebuild
Change-Id: I4f51898c52b64890f4bc6fbd59faf4d59b95da22
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/bazel/+/5215251
Commit-Queue: Li-Yu Yu <aaronyu@google.com>
Tested-by: Li-Yu Yu <aaronyu@google.com>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
1 file changed