[libcxx-commits] [libcxx] [libc++] Remap headers in the debug info when building the library (PR #143004)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 17 06:34:05 PDT 2025
ldionne wrote:
> This means that any rewrite from environent will be ignored for this directory. Mapping from generated headers dir to sourcedir can cause reproducibility problem where source dir is an absolute path on build machine. I think it would be better to let this be a fallback if user does not use `--fiile-prefix-map` or `--fdebug-prefix-map` via CXXFLAGS, in current form the behavior is reversed.
What would you think of adding an option to remap the headers at libc++ build time? That way, if you don't specify anything then we'd remap to the source directory, and if you specify something special then we'd use that. Would that resolve your concerns?
https://github.com/llvm/llvm-project/pull/143004
More information about the libcxx-commits
mailing list