[flang-commits] [flang] 99b7c77 - [flang] Allow different linker name (#77849)
via flang-commits
flang-commits at lists.llvm.org
Fri Jan 12 19:32:37 PST 2024
Author: Kelvin Li
Date: 2024-01-12T22:32:33-05:00
New Revision: 99b7c770c2bebd1d83f06595b670d9385f6d3c52
URL: https://github.com/llvm/llvm-project/commit/99b7c770c2bebd1d83f06595b670d9385f6d3c52
DIFF: https://github.com/llvm/llvm-project/commit/99b7c770c2bebd1d83f06595b670d9385f6d3c52.diff
LOG: [flang] Allow different linker name (#77849)
The linker name is different if the `lld` project is enabled
`-DLLVM_ENABLE_PROJECTS="...;lld"`.
---------
Co-authored-by: Leandro Lupori <leandro.lupori at gmail.com>
Added:
Modified:
flang/test/Driver/isysroot.f90
Removed:
################################################################################
diff --git a/flang/test/Driver/isysroot.f90 b/flang/test/Driver/isysroot.f90
index b3871b352fcfb2..7f021d9c6f9c42 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