[clang] [Clang][Driver] Accept `--offload-jobs` without parallel work (PR #214310)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 6 13:51:36 PDT 2026
================
@@ -5610,6 +5605,7 @@ void Driver::BuildJobs(Compilation &C) const {
J.InProcess = false;
markOffloadDeviceCC1JobsForParallelExecution(C);
+ claimAndDiagnoseOffloadJobs(*this, C.getArgs());
----------------
yxsamliu wrote:
Agreed. I will only claim `--offload-jobs` when offloading is active. A normal C++ compilation will still report it as unused. CMake can test the option using a HIP/offload compilation.
https://github.com/llvm/llvm-project/pull/214310
More information about the cfe-commits
mailing list