瀏覽代碼

Exclude the XL compiler from the hidden-visibility test.

Stephen Kelly 14 年之前
父節點
當前提交
78a6e1c122
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Modules/GenerateExportHeader.cmake

+ 4 - 1
Modules/GenerateExportHeader.cmake

@@ -146,7 +146,10 @@ macro(_test_compiler_hidden_visibility)
     endif()
   endif()
 
-  if (NOT GCC_TOO_OLD AND NOT WIN32)
+  # Exclude XL here because it misinterprets -fvisibility=hidden even though
+  # the check_cxx_compiler_flag passes
+  # http://www.cdash.org/CDash/testDetails.php?test=109109951&build=1419259
+  if (NOT GCC_TOO_OLD AND NOT WIN32 AND NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES XL)
     check_cxx_compiler_flag(-fvisibility=hidden COMPILER_HAS_HIDDEN_VISIBILITY)
     check_cxx_compiler_flag(-fvisibility-inlines-hidden COMPILER_HAS_HIDDEN_INLINE_VISIBILITY)
     option(USE_COMPILER_HIDDEN_VISIBILITY "Use HIDDEN visibility support if available." ON)