From f761e9afc3a687b5bd9b92ece53ed6dcc98b9456 Mon Sep 17 00:00:00 2001 From: Ivet Galabova Date: Wed, 12 Jun 2024 22:53:38 +0300 Subject: [PATCH] disable IPO on macos only if fortran is ON --- CMakeLists.txt | 2 +- check/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ccaa64107a..a861f4088f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,7 +209,7 @@ if (BUILD_CXX) "but it is not supported by the compiler. The check failed with this output:\n" "${check_ipo_support_output}") endif() - elseif(NOT ipo_supported OR APPLE) + elseif(NOT ipo_supported OR (APPLE AND FORTRAN)) message(STATUS "IPO / LTO: disabled because it is not supported") elseif(NOT BUILD_SHARED_LIBS) # For a static library, we can't be sure whether the final linking will diff --git a/check/CMakeLists.txt b/check/CMakeLists.txt index cd8a1080e9..0367e593be 100644 --- a/check/CMakeLists.txt +++ b/check/CMakeLists.txt @@ -173,7 +173,7 @@ if (NOT FAST_BUILD OR ALL_TESTS) set(successMacArmInstances "25fv47\;3103\; 5.5018458883\;" - "80bau3b\;3686\; 9.8722419241\;" + "80bau3b\;3705\; 9.8722419241\;" "adlittle\;74\; 2.2549496316\;" "afiro\;22\;-4.6475314286\;" "etamacro\;531\;-7.5571523330\;"