[llvm] Strip the full path from __FILE__ in the LDBG macro and keep only the filename (PR #150677)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 07:27:47 PDT 2025
joker-eph wrote:
> I think this completely breaks clang module build since a different macro for each source file means the modules are never shared anymore.
I'm not sure what does that mean, can you explain a bit more?
> Also, why we don't use __FILE_NAME__ instead? That is a clang extension but we could check and use that before passing the SHORT_FILE macro.
I could work something out that would only work with gcc and clang, and let MSVC take the slow path.
https://github.com/llvm/llvm-project/pull/150677
More information about the llvm-commits
mailing list