diff options
author | Brad King <brad.king@kitware.com> | 2023-03-24 13:35:43 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-03-24 13:36:45 (GMT) |
commit | 3a9613d28f7d0c0c78c67e233528dc3ac97f7026 (patch) | |
tree | a5dd5dfad90d5e6e0fcf71647ae58857557e3251 /Modules | |
parent | 89b73ba980efbbcc37ecd5728cce8811f897a8d9 (diff) | |
parent | 79622d4a3eece8e95c31525e1485274d4adaefe1 (diff) | |
download | CMake-3a9613d28f7d0c0c78c67e233528dc3ac97f7026.zip CMake-3a9613d28f7d0c0c78c67e233528dc3ac97f7026.tar.gz CMake-3a9613d28f7d0c0c78c67e233528dc3ac97f7026.tar.bz2 |
Merge topic 'ibmclang-aix-thin-lto'
79622d4a3e IBMClang: No thin LTO on AIX
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Rob Boehne <robb@datalogics.com>
Merge-request: !8357
Diffstat (limited to 'Modules')
-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") |