[flang] Make flang build compatible with LLVM dylib
authorSerge Guelton <sguelton@redhat.com>
Mon, 5 Oct 2020 19:35:38 +0000 (15:35 -0400)
committerserge-sans-paille <sguelton@redhat.com>
Wed, 14 Oct 2020 12:27:25 +0000 (14:27 +0200)
commitcde06f783ce9811ed5e6d4c9a4e803b76842eccc
treed9acd49f7702111d5c1a281dfe28d31ce5c4f036
parent82a71822a54d76c62bf730d8c0e8e86d68c60159
[flang] Make flang build compatible with LLVM dylib

Harmonize usage of LLVM components througout Flang.

Explicit LLVM Libs where used across several CMakeFIles, which led to
incompatibilities with LLVM shlibs.
Fortunately, the LLVM component system can be relied on to harmoniously handle
both cases.

Differential Revision: https://reviews.llvm.org/D87893
flang/CMakeLists.txt
flang/cmake/modules/AddFlang.cmake
flang/tools/flang-driver/CMakeLists.txt
flang/unittests/CMakeLists.txt
flang/unittests/Decimal/CMakeLists.txt
flang/unittests/Evaluate/CMakeLists.txt
flang/unittests/Runtime/CMakeLists.txt