diff options
author | Nicole Rabjohn <Nicole.Rabjohn@ibm.com> | 2023-03-22 15:59:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-23 15:46:17 (GMT) |
commit | 79622d4a3eece8e95c31525e1485274d4adaefe1 (patch) | |
tree | a5ea72b9ee900526923fa19a726178d4ff4324ff /Modules/Compiler | |
parent | b69441c796827f28742e2b0a4a611c55c7d0ce45 (diff) | |
download | CMake-79622d4a3eece8e95c31525e1485274d4adaefe1.zip CMake-79622d4a3eece8e95c31525e1485274d4adaefe1.tar.gz CMake-79622d4a3eece8e95c31525e1485274d4adaefe1.tar.bz2 |
IBMClang: No thin LTO on AIX
AIX does not yet support thin LTO.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/IBMClang.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/Compiler/IBMClang.cmake b/Modules/Compiler/IBMClang.cmake index a9d760f..169a0f0 100644 --- a/Modules/Compiler/IBMClang.cmake +++ b/Modules/Compiler/IBMClang.cmake @@ -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") |