[PATCH] D128757: [Driver][test] Add -fuse-ld= option tests for NetBSD
Frederic Cambus via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 28 13:25:06 PDT 2022
fcambus created this revision.
fcambus added a reviewer: MaskRay.
Herald added a subscriber: StephenFan.
Herald added a project: All.
fcambus requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D128757
Files:
clang/test/Driver/Inputs/basic_netbsd_tree/usr/bin/ld.bfd
clang/test/Driver/Inputs/basic_netbsd_tree/usr/bin/ld.gold
clang/test/Driver/fuse-ld.c
Index: clang/test/Driver/fuse-ld.c
===================================================================
--- clang/test/Driver/fuse-ld.c
+++ clang/test/Driver/fuse-ld.c
@@ -40,6 +40,25 @@
// RUN: | FileCheck %s -check-prefix=CHECK-FREEBSD-PLIB
// CHECK-FREEBSD-PLIB: error: invalid linker name
+// RUN: %clang %s -### \
+// RUN: -target x86_64-unknown-netbsd 2>&1 \
+// RUN: | FileCheck %s --check-prefix=CHECK-NETBSD-LD
+// CHECK-NETBSD-LD: ld
+
+// RUN: %clang %s -### -fuse-ld=bfd \
+// RUN: --sysroot=%S/Inputs/basic_netbsd_tree \
+// RUN: -target x86_64-unknown-netbsd \
+// RUN: -B%S/Inputs/basic_netbsd_tree/usr/bin 2>&1 \
+// RUN: | FileCheck %s -check-prefix=CHECK-NETBSD-BFD
+// CHECK-NETBSD-BFD: Inputs/basic_netbsd_tree/usr/bin{{/|\\+}}ld.bfd
+
+// RUN: %clang %s -### -fuse-ld=gold \
+// RUN: --sysroot=%S/Inputs/basic_netbsd_tree \
+// RUN: -target x86_64-unknown-netbsd \
+// RUN: -B%S/Inputs/basic_netbsd_tree/usr/bin 2>&1 \
+// RUN: | FileCheck %s -check-prefix=CHECK-NETBSD-GOLD
+// CHECK-NETBSD-GOLD: Inputs/basic_netbsd_tree/usr/bin{{/|\\+}}ld.gold
+
// RUN: %clang %s -### -fuse-ld=ld \
// RUN: -target arm-linux-androideabi \
// RUN: -B%S/Inputs/basic_android_tree/bin/arm-linux-androideabi- 2>&1 \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128757.440743.patch
Type: text/x-patch
Size: 1270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220628/72353715/attachment.bin>
More information about the cfe-commits
mailing list