- So far, we only recognize the compilation with offloading and skip the offloading part.
yes, OffloadAction is appended to the original host action. The corresponding first job is the host compilation. The frontend has similar handling in lib/Frontend/CreateInvocationFromCommandLine.cpp
Device-side compilation would also use clang, so the check for clang is insufficient for ensuring that it's a *host* compilation.
Furthermore, the order of jobs *will* change depending on whether -fsyntax-only is in effect.
@klimek -- Manuel, Is tooling allowed to create an invocation w/o -fsyntax-only? AFAICT, runToolOnCodeWithArgs always adds it, but one could technically create an Invocation without it.