[libc++] Only build with -fvisibility=hidden on Clang
authorLouis Dionne <ldionne@apple.com>
Wed, 4 Sep 2019 16:41:31 +0000 (16:41 +0000)
committerLouis Dionne <ldionne@apple.com>
Wed, 4 Sep 2019 16:41:31 +0000 (16:41 +0000)
commit5afc5a6c1b98f0c93eb1f9902d96e13b58b54a0c
tree4dda27894954e9bf6067e3f7428571706caa303d
parent912edafcf146353997a40466606b730d60f9f8d2
[libc++] Only build with -fvisibility=hidden on Clang

The visibility annotations in libc++ are not quite right for GCC, which
results in symbols not being exported when -fvisibility=hidden is used.
To fix the GCC build bots, this commit reverts to the previous state of
not building with hidden visibility on GCC.

In the future, we can build with hidden visibility all the time and
export symbols explicitly using a list. See https://llvm.org/D66970
for one take at this.

llvm-svn: 370926
libcxx/src/CMakeLists.txt