[clang] 22433cc - [Driver][test] Fix hexagon-toolchain-elf.c
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 27 16:56:03 PDT 2023
Author: Fangrui Song
Date: 2023-09-27T16:55:58-07:00
New Revision: 22433cc541ff706d9e845774ef1c8c959dc67799
URL: https://github.com/llvm/llvm-project/commit/22433cc541ff706d9e845774ef1c8c959dc67799
DIFF: https://github.com/llvm/llvm-project/commit/22433cc541ff706d9e845774ef1c8c959dc67799.diff
LOG: [Driver][test] Fix hexagon-toolchain-elf.c
"ld" may match a build direcory path, making the `-SAME:` pattern fail.
Added:
Modified:
clang/test/Driver/hexagon-toolchain-elf.c
Removed:
################################################################################
diff --git a/clang/test/Driver/hexagon-toolchain-elf.c b/clang/test/Driver/hexagon-toolchain-elf.c
index b868024d41b9bab..b840de28fd92089 100644
--- a/clang/test/Driver/hexagon-toolchain-elf.c
+++ b/clang/test/Driver/hexagon-toolchain-elf.c
@@ -384,10 +384,10 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// RUN: %clangxx -### --target=hexagon-unknown-elf \
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/Tools/bin \
-// RUN: -mcpu=hexagonv60 \
+// RUN: -mcpu=hexagonv60 -fuse-ld=lld \
// RUN: -s -t -e start_here -uFoo -undefined Bar %s 2>&1 | FileCheck -check-prefix=CHECK33B %s
// CHECK33B: "-cc1"
-// CHECK33B: {{hexagon-link|ld}}
+// CHECK33B: ld.lld
// CHECK33B-SAME: "{{.*}}/Inputs/hexagon_tree/Tools/bin/../target/hexagon/lib/v60/crt0_standalone.o"
// CHECK33B-SAME: "{{.*}}/Inputs/hexagon_tree/Tools/bin/../target/hexagon/lib/v60/crt0.o"
// CHECK33B-SAME: "{{.*}}/Inputs/hexagon_tree/Tools/bin/../target/hexagon/lib/v60/init.o"
More information about the cfe-commits
mailing list