]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove more 18133/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 13 Feb 2025 15:01:39 +0000 (10:01 -0500)
committerTimo Heister <timo.heister@gmail.com>
Thu, 13 Feb 2025 15:01:39 +0000 (10:01 -0500)
cmake/checks/check_02_compiler_features.cmake
cmake/setup_sanity_checks.cmake

index 0b5d14e8f633a0b83ae1cb0fdcfd928698dc16d6..fea8f9687d3567a7ff6b388706a77a98b858ed59 100644 (file)
@@ -31,7 +31,6 @@
 #   DEAL_II_ALWAYS_INLINE
 #   DEAL_II_RESTRICT
 #   DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
-#   DEAL_II_COMPILER_HAS_FUSE_LD_GOLD
 #
 
 #
@@ -330,11 +329,11 @@ reset_cmake_required()
 
 
 #
-# Use 'mold', 'lld' or the 'gold' linker if possible, given that either of them
+# Use 'mold' or 'lld' linker if possible, given that either of them
 # is substantially faster.
 #
-# We have to try to link a full executable with -fuse-ld=mold, -fuse-ld=lld or
-# -fuse-ld=gold to check whether "ld.mold", "ld.lld" or "ld.gold" is actually
+# We have to try to link a full executable with -fuse-ld=mold or -fuse-ld=lld
+# to check whether "ld.mold" or "ld.lld" is actually
 # available.
 #
 # Clang always reports "argument unused during compilation", but fails at link
@@ -369,7 +368,7 @@ if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
   add_flags(CMAKE_REQUIRED_FLAGS "-fPIC")
 
   #
-  # Check for ld.mold, ld.lld and ld.gold support:
+  # Check for ld.mold or ld.lld support:
   #
   add_flags(CMAKE_REQUIRED_FLAGS "-fuse-ld=mold")
   CHECK_CXX_SOURCE_COMPILES(
@@ -388,15 +387,6 @@ if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
     "
     DEAL_II_COMPILER_HAS_FUSE_LD_LLD)
 
-  strip_flag(CMAKE_REQUIRED_FLAGS "-fuse-ld=lld")
-  add_flags(CMAKE_REQUIRED_FLAGS "-fuse-ld=gold")
-  CHECK_CXX_SOURCE_COMPILES(
-    "
-    #include <iostream>
-    void foo() { std::cout << \"Hello, world!\" << std::endl; }
-    "
-    DEAL_II_COMPILER_HAS_FUSE_LD_GOLD)
-
   if(DEAL_II_COMPILER_HAS_FUSE_LD_MOLD)
     add_flags(DEAL_II_LINKER_FLAGS "-fuse-ld=mold")
   elseif(DEAL_II_COMPILER_HAS_FUSE_LD_LLD)
index 99697666d18389460c7eac3d00ebf760d451dd78..114fbd59e1e874a753cd7bc83ec41ea471b8fe8e 100644 (file)
@@ -80,14 +80,6 @@ foreach(build ${DEAL_II_BUILD_TYPES})
     _check_linker_flags()
   endif()
 
-  if(NOT DEAL_II_HAVE_USABLE_FLAGS_${build} AND DEAL_II_COMPILER_HAS_FUSE_LD_GOLD)
-    _drop_linker_flag(
-      "-fuse-ld=gold" ""
-      DEAL_II_COMPILER_HAS_FUSE_LD_GOLD
-      )
-    _check_linker_flags()
-  endif()
-
   unset(CMAKE_TRY_COMPILE_CONFIGURATION)
 
   if(NOT DEAL_II_HAVE_USABLE_FLAGS_${build})

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.