[flang-commits] [PATCH] D146807: [flang][Driver] Fix lto-flags.f90 on Solaris

Rainer Orth via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Mar 24 05:47:11 PDT 2023


ro created this revision.
ro added reviewers: mnadeem, awarzynski, kiranchandramohan, sscalpone.
ro added a project: Flang.
Herald added subscribers: sunshaoce, ormris, jdoerfert, pengfei, steven_wu, hiraditya, fedor.sergeev, inglorion.
Herald added a project: All.
ro requested review of this revision.

The `Flang :: Driver/lto-flags.f90` test `FAIL`s on Solaris:

  /vol/llvm/src/llvm-project/dist/flang/test/Driver/lto-flags.f90:30:13: error: THIN-LTO: expected string not found in input
  ! THIN-LTO: "-plugin-opt=thinlto"
              ^

This is no wonder since the native Solaris `ld` doesn't support the linker plugin interface at all, so this patch marks the test as `UNSUPPORTED`.

Tested on `amd64-pc-solaris2.11` and `x86_64-pc-linux-gnu`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146807

Files:
  flang/test/Driver/lto-flags.f90


Index: flang/test/Driver/lto-flags.f90
===================================================================
--- flang/test/Driver/lto-flags.f90
+++ flang/test/Driver/lto-flags.f90
@@ -1,4 +1,5 @@
-! UNSUPPORTED: system-windows
+! Solaris ld doesn't support the linker plugin interface
+! UNSUPPORTED: system-windows, system-solaris
 ! RUN: %flang -### -S %s 2>&1 | FileCheck %s --check-prefix=NO-LTO
 ! RUN: %flang -### -S -fno-lto %s 2>&1 | FileCheck %s --check-prefix=NO-LTO
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146807.508061.patch
Type: text/x-patch
Size: 478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230324/fb36b6cd/attachment-0001.bin>


More information about the flang-commits mailing list