antlr/BUILD: clear timestamps

zip was earlier introduced to avoid problems with Bazel's zipper,
which tried to rename things where it couldn't. The standard zip
stores timestamps, leading to spurious rebuilds, especially when
building in IntelliJ.

Change-Id: I7174e14e397da1c6774f543284009b307e982cce
This commit is contained in:
Han-Wen Nienhuys 2018-02-07 17:53:34 +01:00
parent 49899c33c8
commit d347f025e7

View File

@ -7,11 +7,11 @@ genrule2(
cmd = " && ".join([
"$(location //lib/antlr:antlr-tool) -o $$TMP $<",
"cd $$TMP",
"zip -q $$ROOT/$@ $$(find . -type f )",
"find . -exec touch -t 198001010000 '{}' ';'",
"zip -q $$ROOT/$@ $$(find . -type f)",
]),
tools = [
"//lib/antlr:antlr-tool",
"@bazel_tools//tools/zip:zipper",
],
visibility = ["//visibility:public"],
)