https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96092
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Martin Liška from comment #2) > Apparently we've got a patch in queue that does something similar: > > +fprofile-prefix-path= > +Common·Joined·RejectNegative·Var(profile_prefix_path) > +remove·prefix·from·absolute·path·before·manging·name·for·-fprofile- > generate=·and·-fprofile-use=. All right, we can definitely not come up with the suggested option. We can adapt the Clang's approach of -fcoverage-prefix-map. Please ping me once it lands to LLVM master and I'll implement it as well.