This is an archive of the discontinued LLVM Phabricator instance.

[flang][Driver] Fix lto-flags.f90 on Solaris
ClosedPublic

Authored by ro on Mar 24 2023, 5:47 AM.

Details

Summary

The Flang :: Driver/lto-flags.f90 test FAILs 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.

Diff Detail

Event Timeline

ro created this revision.Mar 24 2023, 5:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2023, 5:47 AM
ro requested review of this revision.Mar 24 2023, 5:47 AM
awarzynski accepted this revision.Mar 24 2023, 5:51 AM

LGTM, thanks!

This revision is now accepted and ready to land.Mar 24 2023, 5:51 AM
This revision was automatically updated to reflect the committed changes.