浏览代码

Merge topic 'ibmclang-aix-thin-lto'

79622d4a3e IBMClang: No thin LTO on AIX

Acked-by: Kitware Robot <[email protected]>
Acked-by: Rob Boehne <[email protected]>
Merge-request: !8357
Brad King 2 年之前
父节点
当前提交
3a9613d28f
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Modules/Compiler/IBMClang.cmake

+ 4 - 1
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")