[Clang] Fix mispelled option passed to the linker wrapper
authorJoseph Huber <jhuber6@vols.utk.edu>
Sat, 7 Jan 2023 02:02:23 +0000 (20:02 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Sat, 7 Jan 2023 02:02:23 +0000 (20:02 -0600)
Summary:
This option was spelled wrong and caused errors if used in combination
with the linking job. Fix it.

clang/lib/Driver/ToolChains/Clang.cpp

index e407d65..3cbffef 100644 (file)
@@ -8395,7 +8395,7 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA,
   }
 
   for (const auto &A : Args.getAllArgValues(options::OPT_Xcuda_ptxas))
-    CmdArgs.push_back(Args.MakeArgString("--ptxas-args=" + A));
+    CmdArgs.push_back(Args.MakeArgString("--ptxas-arg=" + A));
 
   // Forward remarks passes to the LLVM backend in the wrapper.
   if (const Arg *A = Args.getLastArg(options::OPT_Rpass_EQ))