This is an archive of the discontinued LLVM Phabricator instance.

Enable Fortran testsuite when TEST_SUITE_SUBDIRS=Fortran
ClosedPublic

Authored by pscoro on Dec 8 2022, 7:50 AM.

Diff Detail

Repository
rT test-suite

Event Timeline

pscoro created this revision.Dec 8 2022, 7:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2022, 7:50 AM
pscoro requested review of this revision.Dec 8 2022, 7:50 AM
pscoro edited the summary of this revision. (Show Details)Dec 8 2022, 7:53 AM
pscoro added reviewers: rzurob, anhtuyen.
pscoro updated this revision to Diff 481282.Dec 8 2022, 8:06 AM

Removed unneeded secondary enable_language

daltenty added inline comments.
CMakeLists.txt
15–17

We still need to enable fortran on the path where the user didn't pass the directory but did toggle the option flag, so I think we should keep that block around in it's current form.

A second minor nit, the pattern we usually use for this in the LLVM CMake is slightly different, we usually just set a var to contain the desired default.

pscoro updated this revision to Diff 482128.Dec 12 2022, 7:50 AM

Addressed Nits

daltenty accepted this revision.Dec 12 2022, 12:58 PM

LGTM, thanks!

This revision is now accepted and ready to land.Dec 12 2022, 12:58 PM
daltenty retitled this revision from Enable Fortran testsuite in CMakeLists to Enable Fortran testsuite when TEST_SUITE_SUBDIRS=Fortran.Dec 12 2022, 12:59 PM
This revision was automatically updated to reflect the committed changes.
pscoro reopened this revision.Dec 14 2022, 10:21 AM

Re-opening to apply fixes and reland

This revision is now accepted and ready to land.Dec 14 2022, 10:21 AM
pscoro updated this revision to Diff 482919.Dec 14 2022, 10:21 AM

Fix for when multiple testsuites passed

pscoro updated this revision to Diff 482937.Dec 14 2022, 11:03 AM

fix tested to work

pscoro updated this revision to Diff 486548.Jan 5 2023, 6:20 AM

Added set CMAKE_Fortran_COMPILER

daltenty added inline comments.Jan 6 2023, 8:25 AM
CMakeLists.txt
10

The docs say this should be the default CMake behaviour: https://cmake.org/cmake/help/latest/envvar/FC.html
so I'm not sure we need to handle this explicitly?

pscoro updated this revision to Diff 486919.Jan 6 2023, 10:05 AM

Removed set CMAKE_Fortran_COMPILER

daltenty accepted this revision.Jan 6 2023, 10:50 AM

LGTM with new IN_LIST update