================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits