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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-driver

Author: Kelvin Li (kkwli)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/77849.diff


1 Files Affected:

- (modified) flang/test/Driver/isysroot.f90 (+1-1) 


``````````diff
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

``````````

</details>


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


More information about the flang-commits mailing list