[PATCH] D99695: [llvm-cov] Use -path-equivalence to support relative path.

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 1 10:54:53 PDT 2021


phosek added a comment.

We ran into this issue as well where the compilation directory is set to `.` and path starts with `../..` (we use similar setup to Chromium) so `llvm-cov` tries to write files outside of the `coverage` directory. The way to address it I was considering would be to provide a way to override compilation directory, for example `llvm-cov show --compilation-dir=/path/to/source/out/default ...` so if the path stored in profile is `../../a/b.c`, then it'd become `/path/to/source/a/b.c`. This would address the issue for us but I'm not sure if it's the best possible solution. What do you think?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99695



More information about the llvm-commits mailing list