aboutsummaryrefslogtreecommitdiff
path: root/flang/cmake
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@redhat.com>2020-10-05 15:35:38 -0400
committerserge-sans-paille <sguelton@redhat.com>2020-10-14 14:27:25 +0200
commitcde06f783ce9811ed5e6d4c9a4e803b76842eccc (patch)
treed9acd49f7702111d5c1a281dfe28d31ce5c4f036 /flang/cmake
parent82a71822a54d76c62bf730d8c0e8e86d68c60159 (diff)
downloadllvm-cde06f783ce9811ed5e6d4c9a4e803b76842eccc.zip
llvm-cde06f783ce9811ed5e6d4c9a4e803b76842eccc.tar.gz
llvm-cde06f783ce9811ed5e6d4c9a4e803b76842eccc.tar.bz2
[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
Diffstat (limited to 'flang/cmake')
-rw-r--r--flang/cmake/modules/AddFlang.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/flang/cmake/modules/AddFlang.cmake b/flang/cmake/modules/AddFlang.cmake
index 7fe8b7e..ba36a23 100644
--- a/flang/cmake/modules/AddFlang.cmake
+++ b/flang/cmake/modules/AddFlang.cmake
@@ -61,7 +61,6 @@ macro(add_flang_library name)
llvm_add_library(${name} ${LIBTYPE} ${ARG_UNPARSED_ARGUMENTS} ${srcs})
if (TARGET ${name})
- target_link_libraries(${name} INTERFACE ${LLVM_COMMON_LIBS})
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "libflang")
set(export_to_flangtargets)