[clang] [Clang] Extract offloading code from static libs with 'offload-arch=' (PR #147823)
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 9 13:46:24 PDT 2025
Artem-B wrote:
> but we now assume that if the user specified --offload-arch= on the link job, they definitely want that architecture to be used if it exists.
That would be my assumption, too. Do we currently just ignore `--offload-arch=` for the linking phase?
With the patch, what's expected to happen when link-time `--offload-arch=` specifies an architecture that the libraries were not built for and therefore have no corresponding blobs to extract. I assume it would be diagnosed. If that's the case, we may want to add a test case for that.
https://github.com/llvm/llvm-project/pull/147823
More information about the cfe-commits
mailing list