c513962701
This commit creates target and directory properties to enable the Intel interprocedural optimization support on Linux. Enabling it adds the compiler option '-ipo' and uses 'xiar' to create archives. See issue #9615.
9 lines
242 B
CMake
9 lines
242 B
CMake
INCLUDE(Platform/Linux-Intel)
|
|
IF(XIAR)
|
|
# INTERPROCEDURAL_OPTIMIZATION
|
|
SET(CMAKE_C_COMPILE_OPTIONS_IPO -ipo)
|
|
SET(CMAKE_C_CREATE_STATIC_LIBRARY_IPO
|
|
"${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
|
|
"${XIAR} -s <TARGET> ")
|
|
ENDIF(XIAR)
|