[all-commits] [llvm/llvm-project] 3d2e05: [flang] Install Fortran_main library
Diana via All-commits
all-commits at lists.llvm.org
Mon May 16 01:32:52 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3d2e05d542e646891745c5278a09950d3c4fb4a5
https://github.com/llvm/llvm-project/commit/3d2e05d542e646891745c5278a09950d3c4fb4a5
Author: Diana Picus <diana.picus at linaro.org>
Date: 2022-05-16 (Mon, 16 May 2022)
Changed paths:
M flang/cmake/modules/AddFlang.cmake
M flang/runtime/FortranMain/CMakeLists.txt
Log Message:
-----------
[flang] Install Fortran_main library
At the moment the Fortran_main library is not installed, so it cannot be
found by the driver when run from an install directory. This patch fixes
the issue by replacing llvm_add_library with add_flang_library, which
already contains all the proper incantations for installing a library.
It also enhances add_flang_library to support a STATIC arg which forces
the library to be static even when BUILD_SHARED_LIBS is on.
Differential Revision: https://reviews.llvm.org/D124759
Co-authored-by: Dan Palermo <Dan.Palermo at amd.com>
More information about the All-commits
mailing list