Skip to content

Commit 8ca849f

Browse files
committed
fix: set __DATE__, __TIMESTAMP__ and __TIME__ to "redacted"
1 parent a04f52a commit 8ca849f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

toolchain/cc_toolchain_config.bzl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,6 @@ def cc_toolchain_config(
266266
"-no-canonical-prefixes",
267267
# Reproducibility
268268
"-Wno-builtin-macro-redefined",
269-
"/D__DATE__=0",
270-
"/D__TIMESTAMP__=0",
271-
"/D__TIME__=0",
272269
"/clang:-fdebug-prefix-map={}=__bazel_toolchain_llvm_repo__/".format(toolchain_path_prefix),
273270
])
274271

toolchain/windows_cc_toolchain_config.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ def _impl(ctx):
305305
flag_group(
306306
flags = [
307307
"/wd4117",
308-
"-D__DATE__=0",
309-
"-D__TIMESTAMP__=0",
310-
"-D__TIME__=0",
308+
"/D__DATE__=\"redacted\"",
309+
"/D__TIMESTAMP__=\"redacted\"",
310+
"/D__TIME__=\"redacted\"",
311311
] + (["-Wno-builtin-macro-redefined"] if ctx.attr.compiler == "clang-cl" else []),
312312
),
313313
],

0 commit comments

Comments
 (0)