[clang] [Clang] Make `-Xarch_` handling generic for all toolchains (PR #125421)
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 4 10:52:15 PST 2025
Artem-B wrote:
> Right now it works as I'd expect, it passes --offload-arch=sm_52 to the sm_52 compilation, but no other architecture.
What happens with that `--offload-arch=sm_52` when cc1 sees it?
Ideally there should be either an unused argument warning, or an error is the option is not accepted by cc1. Currently cc1 errors out with `error: unknown argument: '--offload-arch=sm_52`. If it continues to do so with your change, then we're fine.
https://github.com/llvm/llvm-project/pull/125421
More information about the cfe-commits
mailing list