[clang] [llvm] [Clang] Make -ffile-compilation-dir= support reproducible sanitizer builds (PR #201803)

Justin Cady via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 8 12:52:42 PDT 2026


=?utf-8?q?Björn?= Svensson <bjorn.a.svensson at est.tech>,
=?utf-8?q?Björn?= Svensson <bjorn.a.svensson at est.tech>,
=?utf-8?q?Björn?= Svensson <bjorn.a.svensson at est.tech>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/201803 at github.com>


justincady wrote:

Question regarding this approach versus #186908: if one already has a build using `-ffile-prefix-map` but is hitting reproducible build issues only when sanitizers are enabled, would the recommendation be to apply `-fsanitize-compilation-dir=` _in addition to_ `-ffile-prefix-map`?

I ask because I believe ccache understands `-ffile-prefix-map` but not `-ffile-compilation-dir`, so making that transition might not be feasible for users relying on ccache for build performance.

https://github.com/llvm/llvm-project/pull/201803


More information about the cfe-commits mailing list