[flang] Install runtime libs with the toolchain
authorDiana Picus <diana.picus@linaro.org>
Thu, 11 Aug 2022 09:21:40 +0000 (11:21 +0200)
committerTobias Hieta <tobias@hieta.se>
Tue, 16 Aug 2022 06:30:20 +0000 (08:30 +0200)
commit8abe263f1ed2c511b74a677859863dac5a1babaf
tree5da92b79f27b5a0634fd60e44893e291b71364fa
parentf1f55a9f1e2f81060e9144b4df5050adf2db2866
[flang] Install runtime libs with the toolchain

Make sure that FortranDecimal, FortranRuntime and Fortran_main are
installed/packaged even when LLVM_INSTALL_TOOLCHAIN_ONLY is enabled.
They are used by flang to link executables, so they should be provided
even with minimal installs.

Differential Revision: https://reviews.llvm.org/D131670

(cherry picked from commit 467abac2046d037f8d4cf428e76b77e5b06c187f)
flang/cmake/modules/AddFlang.cmake
flang/lib/Decimal/CMakeLists.txt
flang/runtime/CMakeLists.txt
flang/runtime/FortranMain/CMakeLists.txt