Author: Joseph Huber Date: 2023-01-06T20:02:23-06:00 New Revision: cf97ee75f080579d2bbf2a559ec5d46ee00d828d
URL: https://github.com/llvm/llvm-project/commit/cf97ee75f080579d2bbf2a559ec5d46ee00d828d DIFF: https://github.com/llvm/llvm-project/commit/cf97ee75f080579d2bbf2a559ec5d46ee00d828d.diff LOG: [Clang] Fix mispelled option passed to the linker wrapper Summary: This option was spelled wrong and caused errors if used in combination with the linking job. Fix it. Added: Modified: clang/lib/Driver/ToolChains/Clang.cpp Removed: ################################################################################ diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp index e407d65f678d..3cbffef3064d 100644 --- a/clang/lib/Driver/ToolChains/Clang.cpp +++ b/clang/lib/Driver/ToolChains/Clang.cpp @@ -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)) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits