================ @@ -9332,11 +9332,22 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA, // Add the linker arguments to be forwarded by the wrapper. CmdArgs.push_back(Args.MakeArgString(Twine("--linker-path=") + LinkCommand->getExecutable())); - for (const char *LinkArg : LinkCommand->getArguments()) - CmdArgs.push_back(LinkArg); - addOffloadCompressArgs(Args, CmdArgs); + // We use action type to differentiate two use cases of the linker wrapper. + // TY_Image for normal linker wrapper work. ---------------- yxsamliu wrote:
The type of an action is the type of its output file. A linker wrapper normally outputs an image file. Only with "-r" it outputs an object file. https://github.com/llvm/llvm-project/pull/132869 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits