Skip to content

Commit 223251f

Browse files
committed
turn off LTO for 32bit linux
1 parent f587b69 commit 223251f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,12 @@ if (BUILD_CXX)
380380
message(STATUS "IPO / LTO is not supported at the moment when PDLP is using GPU: LTO disabled.")
381381
endif()
382382

383+
if (LINUX)
384+
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
385+
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)
386+
message(STATUS "IPO / LTO is not supported for 32-bit linux.")
387+
endif()
388+
383389
endif()
384390

385391

0 commit comments

Comments
 (0)