Skip to content

Commit e85288b

Browse files
committed
Modify error message
Signed-off-by: Arvind Sudarsanam <[email protected]>
1 parent aaaa5b8 commit e85288b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/test/Driver/linker-wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,4 @@ __attribute__((visibility("protected"), used)) int x;
253253

254254
// Error handling when --linker-path is not provided for clang-linker-wrapper
255255
// RUN: not clang-linker-wrapper 2>&1 | FileCheck --check-prefix=LINKER-PATH-NOT-PROVIDED %s
256-
// LINKER-PATH-NOT-PROVIDED: Host linker is not available
256+
// LINKER-PATH-NOT-PROVIDED: linker path missing, must pass 'linker-path'

clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ Error runLinker(ArrayRef<StringRef> Files, const ArgList &Args) {
371371
// after the output file to ensure it is linked with the correct libraries.
372372
StringRef LinkerPath = Args.getLastArgValue(OPT_linker_path_EQ);
373373
if (LinkerPath.empty())
374-
return createStringError("Host linker is not available");
374+
return createStringError("linker path missing, must pass 'linker-path'");
375375
ArgStringList NewLinkerArgs;
376376
for (const opt::Arg *Arg : Args) {
377377
// Do not forward arguments only intended for the linker wrapper.

0 commit comments

Comments
 (0)