File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,21 @@ if(ipo_supported)
224
224
message (STATUS "IPO / LTO enabled" )
225
225
set_property (GLOBAL PROPERTY INTERPROCEDURAL_OPTIMIZATION True )
226
226
add_definitions (-DLTO )
227
+ if ((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" )
228
+ OR (CMAKE_SYSTEM_PROCESSOR STREQUAL "i386" )
229
+ OR (CMAKE_SYSTEM_PROCESSOR STREQUAL "i586" )
230
+ OR (CMAKE_SYSTEM_PROCESSOR STREQUAL "i686" )
231
+ OR (CMAKE_SYSTEM_PROCESSOR STREQUAL "amd64" ) # freebsd
232
+ OR (CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" ) # windows
233
+ OR (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86" ))
234
+ set (PROCESSOR_FAMILY "Intel" )
235
+ if (CMAKE_COMPILER_IS_GNUCC
236
+ OR (CMAKE_CXX_COMPILER_ID STREQUAL AppleClang )
237
+ OR (CMAKE_CXX_COMPILER_ID STREQUAL Clang )
238
+ OR (CMAKE_CXX_COMPILER_ID STREQUAL Intel ))
239
+ add_definitions (-march=native )
240
+ endif ()
241
+ endif ()
227
242
else ()
228
243
message (STATUS "IPO / LTO not supported: <${error} >" )
229
244
endif ()
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ set_target_properties(
15
15
)
16
16
17
17
if(ipo_supported)
18
- set_property(TARGET minisat2 -condensed PROPERTY INTERPROCEDURAL_OPTIMIZATION True)
18
+ set_property(TARGET glucose -condensed PROPERTY INTERPROCEDURAL_OPTIMIZATION True)
19
19
endif()
20
20
21
21
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
You can’t perform that action at this time.
0 commit comments