[clang] [Clang][NFC] Introduce `--offloadlib` positive flag for `nogpulib` and alias to `--no-offloadlib` (PR #126567)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 11 10:50:00 PST 2025
================
@@ -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
More information about the cfe-commits
mailing list