[flang-commits] [flang] [Driver] Link Flang runtime on Solaris (PR #65644)

Rainer Orth via flang-commits flang-commits at lists.llvm.org
Fri Sep 8 00:52:08 PDT 2023


================
@@ -4,6 +4,7 @@
 
 ! RUN: %flang -### -target ppc64le-linux-gnu %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,GNU
 ! RUN: %flang -### -target aarch64-apple-darwin %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,DARWIN
+! RUN: %flang -### -target sparc-sun-solaris2.11 %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,GNU
----------------
rorth wrote:

True, but how many more copies of the same patterns do we want?  Add FreeBSD, OpenBSD, ... whenever they arrive?  Isn't the common pattern <linker> <object file> <flang rt libs> with or without `-lm`?  How about putting the first under one label and the `-lm` part under another, used where appropriate?

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


More information about the flang-commits mailing list