News for hackers. Stuff that matters.
Re:When to use Bazel? by aaaaaaaaaaab on Tuesday September 13, 2022 @04:51PM (#32830028)
What if I use the __DATE__ macro?
Re:When to use Bazel? by jvolkman on Tuesday September 13, 2022 @05:13PM (#32830245)
Re:When to use Bazel? by jpollock on Tuesday September 13, 2022 @05:14PM (#32830257)
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.

https://bazel.build/docs/user-manual

Re:When to use Bazel? by kmarc on Tuesday September 13, 2022 @05:17PM (#32830288)
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.

Re:When to use Bazel? by jpollock on Tuesday September 13, 2022 @05:46PM (#32830556)
I think __DATE__ without redaction pushes the dependency change 1 level down, to the .o file.

The .a/.so/.exe would no longer match the inputs (the .o files), causing a re-link.