This avoids dllexports in that library.
Details
- Reviewers
ldionne phosek - Group Reviewers
Restricted Project - Commits
- rG0d7de7a35533: [libcxx] Make LIBCXX_HERMETIC_STATIC_LIBRARY apply to libc++experimental too
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libcxx/src/CMakeLists.txt | ||
---|---|---|
337 | Shouldn't we always add these flags to cxx_experimental, i.e. not only when LIBCXX_HERMETIC_STATIC_LIBRARY=ON? |
libcxx/src/CMakeLists.txt | ||
---|---|---|
337 | Well this is how it’s done for the regular static library above, lines 295-302. |
libcxx/src/CMakeLists.txt | ||
---|---|---|
337 | The only place CXX_STATIC_LIBRARY_FLAGS is set is on line 300 above, where -fvisibility-global-new-delete-hidden is added to the variable. But I guess that we don't need to set that at all for libc++experimental, as that library doesn't provide any new/delete operators? I can rerun this patch in CI with the target_compile_options(cxx_experimental PRIVATE ${CXX_STATIC_LIBRARY_FLAGS}) line omitted, as it's not needed for the case I'm fixing here anyway. |
Removed the setting of CXX_STATIC_LIBRARY_FLAGS for cxx_+experimental, as it probably isn't needed. Will push later when CI has passed.
Shouldn't we always add these flags to cxx_experimental, i.e. not only when LIBCXX_HERMETIC_STATIC_LIBRARY=ON?