[clang] cc7a197 - Fix riscv/lld test interaction
via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 18 03:34:19 PST 2020
Author: serge-sans-paille
Date: 2020-02-18T12:34:07+01:00
New Revision: cc7a197f9f1039e36625249199aa652f84506802
URL: https://github.com/llvm/llvm-project/commit/cc7a197f9f1039e36625249199aa652f84506802
DIFF: https://github.com/llvm/llvm-project/commit/cc7a197f9f1039e36625249199aa652f84506802.diff
LOG: Fix riscv/lld test interaction
Fix for dd230142d8a00f5f30c3930a2407000e845dcfbf, in case ld.lld is not
available.
Added:
Modified:
clang/test/Driver/riscv32-toolchain.c
Removed:
################################################################################
diff --git a/clang/test/Driver/riscv32-toolchain.c b/clang/test/Driver/riscv32-toolchain.c
index 1b765dba6b9a..c5f82d309af5 100644
--- a/clang/test/Driver/riscv32-toolchain.c
+++ b/clang/test/Driver/riscv32-toolchain.c
@@ -3,9 +3,9 @@
// RUN: %clang %s -### -no-canonical-prefixes -target riscv32 2>&1 | FileCheck -check-prefix=CC1 %s
// CC1: clang{{.*}} "-cc1" "-triple" "riscv32"
-// Test interaction with -fuse-ld=lld
+// Test interaction with -fuse-ld=lld, if ld.lld is available.
// RUN: %clang %s -### -no-canonical-prefixes -target riscv32 -fuse-ld=lld 2>&1 | FileCheck -check-prefix=LLD %s
-// LLD: ld.lld
+// LLD: {{(error: invalid linker name in argument '-fuse-ld=lld')|(ld.lld)}}
// In the below tests, --rtlib=platform is used so that the driver ignores
// the configure-time CLANG_DEFAULT_RTLIB option when choosing the runtime lib
More information about the cfe-commits
mailing list