Skip to content

Commit f761e9a

Browse files
committed
disable IPO on macos only if fortran is ON
1 parent 3fbe0cc commit f761e9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ if (BUILD_CXX)
209209
"but it is not supported by the compiler. The check failed with this output:\n"
210210
"${check_ipo_support_output}")
211211
endif()
212-
elseif(NOT ipo_supported OR APPLE)
212+
elseif(NOT ipo_supported OR (APPLE AND FORTRAN))
213213
message(STATUS "IPO / LTO: disabled because it is not supported")
214214
elseif(NOT BUILD_SHARED_LIBS)
215215
# For a static library, we can't be sure whether the final linking will

check/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ if (NOT FAST_BUILD OR ALL_TESTS)
173173

174174
set(successMacArmInstances
175175
"25fv47\;3103\; 5.5018458883\;"
176-
"80bau3b\;3686\; 9.8722419241\;"
176+
"80bau3b\;3705\; 9.8722419241\;"
177177
"adlittle\;74\; 2.2549496316\;"
178178
"afiro\;22\;-4.6475314286\;"
179179
"etamacro\;531\;-7.5571523330\;"

0 commit comments

Comments
 (0)