[flang-commits] [flang] [flang] Allow different linker name (PR #77849)

Kelvin Li via flang-commits flang-commits at lists.llvm.org
Thu Jan 11 15:16:26 PST 2024


https://github.com/kkwli created https://github.com/llvm/llvm-project/pull/77849

The linker name is different if  the `lld` project is enabled `-DLLVM_ENABLE_PROJECTS="...;lld"`.

>From e45ca539ff2cb8e122221712765ea4178c626134 Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Thu, 11 Jan 2024 18:12:32 -0500
Subject: [PATCH] [flang] Allow different linker name

---
 flang/test/Driver/isysroot.f90 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang/test/Driver/isysroot.f90 b/flang/test/Driver/isysroot.f90
index b3871b352fcfb2..97da6cfe989a2f 100644
--- a/flang/test/Driver/isysroot.f90
+++ b/flang/test/Driver/isysroot.f90
@@ -6,7 +6,7 @@
 ! RUN: %flang -### --target=aarch64-linux-gnu -isysroot /path/to/sysroot \
 ! RUN:        %s 2>&1 | FileCheck %s --check-prefix=CHECK-LINUX
 
-! CHECK-DARWIN: "{{.*[\/]}}ld" {{.*}}"-syslibroot" "/path/to/sysroot"
+! CHECK-DARWIN: "{{.*[\/]}}ld{{(64)?(.lld)?}}" {{.*}}"-syslibroot" "/path/to/sysroot"
 ! Unused on Linux.
 ! CHECK-LINUX: warning: argument unused during compilation: '-isysroot /path/to/sysroot'
 ! CHECK-LINUX-NOT: /path/to/sysroot



More information about the flang-commits mailing list