Re:When to use Bazel?
by aaaaaaaaaaab on Tuesday September 13, 2022 @04:51PM
(#32830028)
What if I use the __DATE__ macro?
[ Parent
| on HN ]
You'll get "redacted"
https://github.com/bazelbuild/bazel/blob/34ce6a23f5a2be58bb5...
Yes, you can go out of your way to make your builds non-deterministic. That should break in Make as well.
I don't know enough about bazel to answer your question definitively, but "stamping" is what you want to search for.
The better question is, what if you change a comment?
It checksums the preprocessed files, so neither `__DATE__`, no comment changes should affect your build times.