mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
IBMClang: No thin LTO on AIX
AIX does not yet support thin LTO.
This commit is contained in:
committed by
Brad King
parent
b69441c796
commit
79622d4a3e
@@ -43,7 +43,10 @@ macro(__compiler_ibmclang lang)
|
||||
set(_CMAKE_${lang}_IPO_SUPPORTED_BY_CMAKE YES)
|
||||
set(_CMAKE_${lang}_IPO_MAY_BE_SUPPORTED_BY_COMPILER YES)
|
||||
|
||||
set(_CMAKE_LTO_THIN TRUE)
|
||||
# Thin LTO is not yet supported on AIX.
|
||||
if(NOT (CMAKE_SYSTEM_NAME STREQUAL "AIX"))
|
||||
set(_CMAKE_LTO_THIN TRUE)
|
||||
endif()
|
||||
|
||||
if(_CMAKE_LTO_THIN)
|
||||
set(CMAKE_${lang}_COMPILE_OPTIONS_IPO "-flto=thin")
|
||||
|
||||
Reference in New Issue
Block a user