Skip to content

Commit 5397a16

Browse files
committed
Update error message
Signed-off-by: Arvind Sudarsanam <[email protected]>
1 parent d215cfd commit 5397a16

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

clang/test/Driver/linker-wrapper-sycl-win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@
115115

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

clang/test/Driver/linker-wrapper-sycl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,4 @@
193193

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

clang/test/Driver/linker-wrapper.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,7 @@ __attribute__((visibility("protected"), used)) int x;
250250
// MLLVM-SAME: -Xlinker -mllvm=-pass-remarks=foo,bar
251251
// OFFLOAD-OPT-NOT: -Xlinker -mllvm=-pass-remarks=foo,bar
252252
// OFFLOAD-OPT-SAME: {{$}}
253+
254+
// Error handling when --linker-path is not provided for clang-linker-wrapper
255+
// RUN: not clang-linker-wrapper 2>&1 | FileCheck --check-prefix=LINKER-PATH-NOT-PROVIDED %s
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
@@ -412,7 +412,7 @@ Error runLinker(ArrayRef<StringRef> Files, const ArgList &Args) {
412412
// after the output file to ensure it is linked with the correct libraries.
413413
StringRef LinkerPath = Args.getLastArgValue(OPT_linker_path_EQ);
414414
if (LinkerPath.empty())
415-
return createStringError("Host linker is not available");
415+
return createStringError("linker path missing, must pass 'linker-path'");
416416
ArgStringList NewLinkerArgs;
417417
for (const opt::Arg *Arg : Args) {
418418
// Do not forward arguments only intended for the linker wrapper.

0 commit comments

Comments
 (0)