[clang] [llvm] [Driver][SYCL] Add initial SYCL offload compilation support (PR #107493)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 18 08:44:05 PST 2024
================
@@ -5176,11 +5183,34 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
if (const Arg *PF = Args.getLastArg(options::OPT_mprintf_kind_EQ))
PF->claim();
- if (Args.hasFlag(options::OPT_fsycl, options::OPT_fno_sycl, false)) {
- CmdArgs.push_back("-fsycl-is-device");
+ Arg *SYCLStdArg = Args.getLastArg(options::OPT_sycl_std_EQ);
----------------
tahonermann wrote:
Please move the declaration of `SYCLStdArg` down to where it is tested (line ~5212).
https://github.com/llvm/llvm-project/pull/107493
More information about the cfe-commits
mailing list