Skip to content

Commit

Permalink
disable IPO on macos only if fortran is ON
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Jun 12, 2024
1 parent 3fbe0cc commit f761e9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion check/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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\;"
Expand Down

0 comments on commit f761e9a

Please sign in to comment.