This is an archive of the discontinued LLVM Phabricator instance.

[flang] Allow configuring building the flang runtime standalone
ClosedPublic

Authored by mstorsjo on Jul 22 2022, 5:12 AM.

Details

Summary

This allows building the flang runtime and libFortranDecimal standalone,
without setting up the full llvm build, by pointing cmake to these
directories.

This is the other one out of two essential steps for building the flang runtimes
for a foreign target, i.e. setting up cross compiling with flang.

Diff Detail

Event Timeline

mstorsjo created this revision.Jul 22 2022, 5:12 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a subscriber: mgorny. · View Herald Transcript
mstorsjo requested review of this revision.Jul 22 2022, 5:12 AM

I should add here, that this is only a provisional first step. I guess the proper thing long term would be to split them out into separate toplevel projects (like libcxx), which then can be built with the llvm-projects/runtimes infrastructure, by listing the Fortran runtime in LLVM_ENABLE_RUNTIMES.

rovka accepted this revision.Jul 25 2022, 2:21 AM
rovka added a subscriber: rovka.

LGTM (based on skimming some other CMakeLists.txt around llvm). Maybe wait a bit before merging so others can have a look too.

This revision is now accepted and ready to land.Jul 25 2022, 2:21 AM