This fixes a bug that happens when using -fdebug-prefix-map to remap an absolute path to a relative path. Since the path was absolute before remapping, it is safe to assume that concatenating the remapped working directory would be wrong.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@thakis - I think you folks over in Chrome land implemented/use -fdebug-prefix-map (or do you use -fdebug-compilation-dir?) so might be interested in this change.
Comment Actions
We're seeing test failures in https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8821217427732511185/overview
Comment Actions
Breaks tests on Linux and Mac, e.g. http://45.33.8.238/linux/69643/step_7.txt and http://45.33.8.238/win/53984/step_7.txt
Please take a look and revert for now if it takes a while to fix.
Comment Actions
We're using fdebug-compilation-dir. With fdebug-prefix-map, your command line flags are machine-specific, which makes builds not universally deterministic (per https://blog.llvm.org/2019/11/deterministic-builds-with-clang-and-lld.html)