aboutsummaryrefslogtreecommitdiff
path: root/toolchains/cc/BUILD.bazel
diff options
context:
space:
mode:
authorZach Yu <zachyu@google.com>2023-03-17 16:54:49 -0700
committerZach Yu <zachyu@google.com>2023-03-17 17:14:35 -0700
commitd1ab3b7191f3d030060334974aa6f7125cdca8d2 (patch)
treedf56535fd61b3a775e24312da5f0551975697443 /toolchains/cc/BUILD.bazel
parent8d388a4cec0e010ca1006103ee8dbcf2e190d57f (diff)
downloadbazel-d1ab3b7191f3d030060334974aa6f7125cdca8d2.tar.gz
Fix bazel caching.
Test: bazel build @zlib//:zlib -s; bazel shutdown; bazel build @zlib//:zlib -s Bug: 265864471 Change-Id: I92c570b01a0c872f04a891332d1e6d9c2add2f7e
Diffstat (limited to 'toolchains/cc/BUILD.bazel')
-rw-r--r--toolchains/cc/BUILD.bazel4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolchains/cc/BUILD.bazel b/toolchains/cc/BUILD.bazel
index 23bed64d..de7796e8 100644
--- a/toolchains/cc/BUILD.bazel
+++ b/toolchains/cc/BUILD.bazel
@@ -18,6 +18,10 @@ cc_toolchain_config(
compile_flags = [
"-m64",
"-no-canonical-prefixes",
+ "-Wno-builtin-macro-redefined",
+ "-D__DATE__=\"redacted\"",
+ "-D__TIMESTAMP__=\"redacted\"",
+ "-D__TIME__=\"redacted\"",
],
identifier = "linux_clang_x64",
link_flags = [