Files
CMake/Modules/Platform/AIX-IBMClang.cmake
Brad King 07e2eb50f0 IBMClang: Do not use -fvisibility on AIX
Use of `-fvisibility=hidden` fails:

  unsupported option '-fvisibility=hidden' for target 'powerpc-ibm-aix7.2.0.0'

Apply the change from commit 4feba34d02 (GNU: Do not use -fvisibility on
AIX or HP-UX, 2016-09-03, v3.7.0-rc1~173^2~2) to IBMClang also.

Issue: #23157
2022-01-28 15:43:21 -05:00

17 lines
445 B
CMake

# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
# This module is shared by multiple languages; use include blocker.
if(__AIX_COMPILER_IBMCLANG)
return()
endif()
set(__AIX_COMPILER_IBMCLANG 1)
include(Platform/AIX-GNU)
macro(__aix_compiler_ibmclang lang)
__aix_compiler_gnu(${lang})
unset(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY)
endmacro()