summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/AIX-IBMClang.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-28 20:43:21 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-28 20:43:21 (GMT)
commit07e2eb50f033dd30e7bed459879a4a230b45368d (patch)
tree501eadef0d95847976f864cf56f7f67ac7015d51 /Modules/Platform/AIX-IBMClang.cmake
parent6108352f0ac004ea94b0c8bab481fcf0611c35d1 (diff)
downloadCMake-07e2eb50f033dd30e7bed459879a4a230b45368d.zip
CMake-07e2eb50f033dd30e7bed459879a4a230b45368d.tar.gz
CMake-07e2eb50f033dd30e7bed459879a4a230b45368d.tar.bz2
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
Diffstat (limited to 'Modules/Platform/AIX-IBMClang.cmake')
-rw-r--r--Modules/Platform/AIX-IBMClang.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/AIX-IBMClang.cmake b/Modules/Platform/AIX-IBMClang.cmake
index ffb402c..4e5205e 100644
--- a/Modules/Platform/AIX-IBMClang.cmake
+++ b/Modules/Platform/AIX-IBMClang.cmake
@@ -12,4 +12,5 @@ include(Platform/AIX-GNU)
macro(__aix_compiler_ibmclang lang)
__aix_compiler_gnu(${lang})
+ unset(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY)
endmacro()