[clang] [clang-linker-wrapper] Add error handling for missing linker path (PR #113613)
Arvind Sudarsanam via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 24 14:21:30 PDT 2024
================
@@ -370,6 +370,8 @@ Error runLinker(ArrayRef<StringRef> Files, const ArgList &Args) {
// Render the linker arguments and add the newly created image. We add it
// after the output file to ensure it is linked with the correct libraries.
StringRef LinkerPath = Args.getLastArgValue(OPT_linker_path_EQ);
+ if (LinkerPath.empty())
+ return createStringError("Host linker is not available");
----------------
asudarsa wrote:
Thanks. Addressed in next commit.
https://github.com/llvm/llvm-project/pull/113613
More information about the cfe-commits
mailing list