================ @@ -7088,7 +7088,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, } // Forward -nogpulib to -cc1. - if (Args.hasArg(options::OPT_nogpulib)) + if (!Args.hasFlag(options::OPT_offloadlib, options::OPT_no_offloadlib, true)) CmdArgs.push_back("-nogpulib"); ---------------- yxsamliu wrote:
better use the new option https://github.com/llvm/llvm-project/pull/126567 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits