]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also test for -fuse-ld=mold 15121/head
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 22 Apr 2023 13:44:53 +0000 (09:44 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 22 Apr 2023 13:44:53 +0000 (09:44 -0400)
cmake/setup_finalize.cmake

index dea53bff1493cbcc9949216e5d77bb7fb262b9a2..0c0add51c7c027262e02bf96b66a08e7bfc3026b 100644 (file)
@@ -87,6 +87,20 @@ foreach(build ${DEAL_II_BUILD_TYPES})
 
   _check_linker_flags()
 
+  if(NOT DEAL_II_HAVE_USABLE_FLAGS_${build} AND DEAL_II_COMPILER_HAS_FUSE_LD_MOLD)
+    set(_replacement "")
+    if(DEAL_II_COMPILER_HAS_FUSE_LD_LLD)
+      set(_replacement "-fuse-ld=lld")
+    elseif(DEAL_II_COMPILER_HAS_FUSE_LD_GOLD)
+      set(_replacement "-fuse-ld=gold")
+    endif()
+    _drop_linker_flag(
+      "-fuse-ld=mold" ${_replacement}
+      DEAL_II_COMPILER_HAS_FUSE_LD_MOLD
+      )
+    _check_linker_flags()
+  endif()
+
   if(NOT DEAL_II_HAVE_USABLE_FLAGS_${build} AND DEAL_II_COMPILER_HAS_FUSE_LD_LLD)
     set(_replacement "")
     if(DEAL_II_COMPILER_HAS_FUSE_LD_GOLD)

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.