diff options
| author | Louis Dionne <ldionne@apple.com> | 2019-03-14 17:15:47 +0000 |
|---|---|---|
| committer | Louis Dionne <ldionne@apple.com> | 2019-03-14 17:15:47 +0000 |
| commit | 702411fc298032a2e700907cc3d6136d5b46afe7 (patch) | |
| tree | f254ea1ccaf8a2f17615be048a7b43676249614d /libcxx/lib | |
| parent | 621de86907d5126e2597b720cbcc09ccffcbaaa0 (diff) | |
| download | bcm5719-llvm-702411fc298032a2e700907cc3d6136d5b46afe7.tar.gz bcm5719-llvm-702411fc298032a2e700907cc3d6136d5b46afe7.zip | |
[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
Diffstat (limited to 'libcxx/lib')
| -rw-r--r-- | libcxx/lib/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt index 91924f4a2f5..fd493d4346e 100644 --- a/libcxx/lib/CMakeLists.txt +++ b/libcxx/lib/CMakeLists.txt @@ -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) |

