Issue 169666
Summary Support `-fcanon-prefix-map` in clang
Labels clang
Assignees
Reporter rossburton
    GCC has an option `-fcanon-prefix-map`, (quoting from the [GCC manual](https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/Overall-Options.html#index-fcanon-prefix-map)):

>For the -f*-prefix-map options normally comparison of old prefix against the filename that would be normally referenced in the result of the compilation is done using textual comparison of the prefixes, or ignoring character case for case insensitive filesystems and considering slashes and backslashes as equal on DOS based filesystems. The -fcanon-prefix-map causes such comparisons to be done on canonicalized paths of old and the referenced filename.

This is useful when using prefix-maps to avoid built paths leaking into output binaries. Would it be possible for clang to support the same flag?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to