[clang] [Clang] Make `-Xarch_` handling generic for all toolchains (PR #125421)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 4 11:55:59 PST 2025


jhuber6 wrote:

> > --offload-arch= isn't an accepted -cc1 argument so it won't be forwarded at all.
> 
> Silently? That would be wrong, imo. It should be diagnosed somewhere.

It's already an error if you pass it directly via -`Xclang` because it's not an accepted `-cc1` argument. A lot of driver arguments are both driver and `cc1` arguments so those get marshalled or forwarded.

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


More information about the cfe-commits mailing list