[flang-commits] [PATCH] D144592: [flang] Fix linker test on Windows.
Michael Kruse via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Mar 8 14:47:48 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb52cf4c41cd0: [flang] Fix linker test on Windows. (authored by Meinersbur).
Herald added a subscriber: sunshaoce.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144592/new/
https://reviews.llvm.org/D144592
Files:
flang/test/Driver/linker-flags.f90
Index: flang/test/Driver/linker-flags.f90
===================================================================
--- flang/test/Driver/linker-flags.f90
+++ flang/test/Driver/linker-flags.f90
@@ -17,20 +17,24 @@
! CHECK-SAME: "-o" "[[object_file:.*\.o]]" {{.*}}Inputs/hello.f90
! Linker invocation to generate the executable
-! GNU-LABEL: "{{.*}}ld"
+! NOTE: Since we are cross-compiling, the host toolchain executables may
+! run on any other platform, such as Windows that use a .exe
+! suffix. Clang's driver will try to resolve the path to the ld
+! executable and may find the GNU linker from MinGW or Cygwin.
+! GNU-LABEL: "{{.*}}ld{{(\.exe)?}}"
! GNU-SAME: "[[object_file]]"
! GNU-SAME: -lFortran_main
! GNU-SAME: -lFortranRuntime
! GNU-SAME: -lFortranDecimal
! GNU-SAME: -lm
-! DARWIN-LABEL: "{{.*}}ld"
+! DARWIN-LABEL: "{{.*}}ld{{(\.exe)?}}"
! DARWIN-SAME: "[[object_file]]"
! DARWIN-SAME: -lFortran_main
! DARWIN-SAME: -lFortranRuntime
! DARWIN-SAME: -lFortranDecimal
-! MINGW-LABEL: "{{.*}}ld"
+! MINGW-LABEL: "{{.*}}ld{{(\.exe)?}}"
! MINGW-SAME: "[[object_file]]"
! MINGW-SAME: -lFortran_main
! MINGW-SAME: -lFortranRuntime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144592.503530.patch
Type: text/x-patch
Size: 1180 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230308/cbbc4e19/attachment.bin>
More information about the flang-commits
mailing list