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

Brad Smith via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 15 02:41:52 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
----------------
brad0 wrote:

One thing to add to this. I noticed the Gnu addition does not check for `nostdlib, nodefaultlibs, or r` flags like the C++ library chunk does. With the proposed diff and what I had initially being right under the C++ chunk in the Solaris and *BSD ToolChain they would be checking for said flags.

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


More information about the cfe-commits mailing list