cachemeifyoucan wrote: Ah, I think it only applies to `clang -fthinlto-index=` invocation, not LTO/PGOOptions. Can you adjust the commit message and also add a test for it? https://github.com/llvm/llvm-project/pull/159671