[PATCH] D83154: clang: Add -fcoverage-prefix-map

Keith Smiley via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 21 17:16:37 PDT 2020


keith added a comment.

With D87928 <https://reviews.llvm.org/D87928> do you think we would want this flag as well? The only difference I can think of (besides general UX) is if you need to remap paths outside of your source root, I believe having a `*-prefix-map` style flag makes that a bit more clear (or potentially possible at all). Ideally there wouldn't be issues around that but in the past in the Apple toolchain the Xcode path was embedded in debug info (as an example), so to get a reproducible build we had to pass `-fdebug-prefix-map=/path/to/Xcode.app=SOMETHING`. Which `-fdebug-compilation-dir .` couldn't solve. I'm wondering if we should add both flags for this flexibility, or if we should assume this should not happen?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83154



More information about the cfe-commits mailing list