[flang-commits] [flang] 65c4ace - [flang][Driver] Fix lto-flags.f90 on Solaris
Rainer Orth via flang-commits
flang-commits at lists.llvm.org
Fri Mar 24 06:25:07 PDT 2023
Author: Rainer Orth
Date: 2023-03-24T14:24:07+01:00
New Revision: 65c4aceb735b02c656ec76d1037d5071e1b3da5e
URL: https://github.com/llvm/llvm-project/commit/65c4aceb735b02c656ec76d1037d5071e1b3da5e
DIFF: https://github.com/llvm/llvm-project/commit/65c4aceb735b02c656ec76d1037d5071e1b3da5e.diff
LOG: [flang][Driver] Fix lto-flags.f90 on Solaris
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`.
Differential Revision: https://reviews.llvm.org/D146807
Added:
Modified:
flang/test/Driver/lto-flags.f90
Removed:
################################################################################
diff --git a/flang/test/Driver/lto-flags.f90 b/flang/test/Driver/lto-flags.f90
index 5c69f79d35216..e4b28bae95f00 100644
--- a/flang/test/Driver/lto-flags.f90
+++ b/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
More information about the flang-commits
mailing list