From: Matthias Maier Date: Fri, 15 Mar 2019 17:20:58 +0000 (-0500) Subject: Revert "Only permit use of ld.lld linker when the Clang compiler is used." X-Git-Tag: v9.1.0-rc1~277^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9e55a520462b53a646b418701ccdb3a1befb633;p=dealii.git Revert "Only permit use of ld.lld linker when the Clang compiler is used." This reverts commit 7ca10c52d89ec0e201320acaa9b34822d47779df. --- diff --git a/cmake/checks/check_02_compiler_features.cmake b/cmake/checks/check_02_compiler_features.cmake index fae50833f9..d108cc4767 100644 --- a/cmake/checks/check_02_compiler_features.cmake +++ b/cmake/checks/check_02_compiler_features.cmake @@ -460,11 +460,7 @@ CHECK_CXX_SOURCE_COMPILES( DEAL_II_COMPILER_HAS_FUSE_LD_GOLD) RESET_CMAKE_REQUIRED() -# -# The ld.lld linker is not compatible with GCC. So we only enable it when -# the Clang compiler is used. See https://github.com/dealii/dealii/issues/7811 -# -IF(DEAL_II_COMPILER_HAS_FUSE_LD_LLD AND CMAKE_CXX_COMPILER_ID MATCHES "Clang") +IF(DEAL_II_COMPILER_HAS_FUSE_LD_LLD) ADD_FLAGS(DEAL_II_LINKER_FLAGS "-fuse-ld=lld") ELSEIF(DEAL_II_COMPILER_HAS_FUSE_LD_GOLD) ADD_FLAGS(DEAL_II_LINKER_FLAGS "-fuse-ld=gold")