ilovepi wrote: Maybe https://github.com/llvm/llvm-project/blob/416c3ce0138ff4039dab13ff634ee6392b9a3c7b/clang/lib/Driver/ToolChains/CommonArgs.cpp#L196 was a more relevant function to point out. https://github.com/llvm/llvm-project/pull/109628