[PATCH] D107393: Apply -fmacro-prefix-map to __builtin_FILE()

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 4 11:50:14 PDT 2021


MaskRay added a comment.

I can push it on your behalf, I want to wait a bit for more comments.
(You need to provide name/email so that you can get the proper attribution `git commit --amend --author='...'`)

Looks like a good candidate for release/13.x for build reproducibility.
absl has a macro saying whether `__builtin_FILE` can be used.
I can find a few other places where people do something like `-D__builtin_FILE()="file.cc"` probably to work around Clang.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107393/new/

https://reviews.llvm.org/D107393



More information about the cfe-commits mailing list