[libc++][CMake] Do not define `cxx_shared_EXPORTS` when building the shared library

CMake will define -Dcxx_shared_EXPORTS when building the shared library
by default. In theory, this is used to signal to the library that we're
building a shared library and that dllimport/dllexport should be used.
However, we already have our own way of doing that, so I'm removing this
define to avoid meaningless command line arguments in the build.

llvm-svn: 356167
This commit is contained in:
Louis Dionne 2019-03-14 17:15:47 +00:00
parent 621de86907
commit 702411fc29
1 changed files with 1 additions and 0 deletions

View File

@ -207,6 +207,7 @@ if (LIBCXX_ENABLE_SHARED)
OUTPUT_NAME "c++"
VERSION "${LIBCXX_ABI_VERSION}.0"
SOVERSION "${LIBCXX_ABI_VERSION}"
DEFINE_SYMBOL ""
)
cxx_set_common_defines(cxx_shared)