[clang] [Driver] Link Flang runtime on Solaris (PR #65644)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 17 11:55:06 PDT 2023


================
@@ -21,12 +22,12 @@
 !       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
+! UNIX-LABEL:  "{{.*}}ld{{(\.exe)?}}"
+! UNIX-SAME: "[[object_file]]"
+! UNIX-SAME: -lFortran_main
----------------
MaskRay wrote:

Personally I prefer testing `-lx -ly -lz` on one line to assert that is no extra argument in between.
This line isn't very long.

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


More information about the cfe-commits mailing list