[clang] [LinkerWrapper] Clean up options after proper forwarding (PR #126297)

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 7 11:54:58 PST 2025


================
@@ -9223,6 +9223,8 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA,
       Args.MakeArgString("--host-triple=" + getToolChain().getTripleString()));
   if (Args.hasArg(options::OPT_v))
     CmdArgs.push_back("--wrapper-verbose");
+  if (Arg *A = Args.getLastArg(options::OPT_cuda_path_EQ))
----------------
sarnex wrote:

i see this is already in the `CompilerOptions` set above, do we need this explicit handling because `--cuda-path` is a `clang-linker-wrapper` option as well as a clang one? 

if so, is there an easy way we could remove one of the two?

https://github.com/llvm/llvm-project/pull/126297


More information about the cfe-commits mailing list