[third_party][spirv-tools] Make `:spvtools_build_version` hermetic
Bug:80983
The script in the `:spvtools_build_version` target reads the "CHANGES"
file as well as scans ".git/HEAD" (and the git directory) for tags.
Neither input was listed.
Listing the target's inputs in combination with fxrev.dev/557890 makes
the target hermetic.
Testability:
Successfully build locally with trace actions enabled or on the CQ.
Change-Id: I643404d581911f06efd441697a55459e25bd516d
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/spirv-tools/+/558121
Reviewed-by: Craig Stout <cstout@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 19ee77a..4c7bb2e 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -247,6 +247,11 @@
src_dir = "."
inc_file = "${target_gen_dir}/build-version.inc"
+ inputs = [
+ "CHANGES",
+ ".git/HEAD",
+ ]
+
outputs = [ inc_file ]
args = [
rebase_path(src_dir, root_build_dir),