[libcxxabi] Fix cmake order dependency wrt dllexporting
authorMartin Storsjö <martin@martin.st>
Mon, 7 Mar 2022 18:32:52 +0000 (13:32 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 7 Mar 2022 20:36:04 +0000 (15:36 -0500)
commitebde6fc23bc0ee9d022fcd26b52bc82dfb7c8468
treeb67911fbc0e4961c7de1b747a525ed205e000e37
parentbed3240bf7d196a17cc31f1c5b59b4721017e638
[libcxxabi] Fix cmake order dependency wrt dllexporting

If LIBCXX_ENABLE_SHARED isn't explicitly set on the cmake command
line, isn't set in the cache, and the libcxxabi project is configured
before libcxx, then LIBCXX_ENABLE_SHARED isn't defined yet. Once
the libcxx cmake project has been parsed, LIBCXX_ENABLE_SHARED would
have been set to its default value of ON.

This makes sure that the symbols are properly dllexported in such
a configuration scenario.

Differential Revision: https://reviews.llvm.org/D120982
libcxx/docs/ReleaseNotes.rst
libcxxabi/CMakeLists.txt