This change allows building both shared and static version of libc++ in a single build, sharing object files between both versions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/CMakeLists.txt | ||
---|---|---|
188 ↗ | (On Diff #67046) | Im not sure I understand this. Couldn't you build both static and shared versions, and therefore, need both branches? |
lib/CMakeLists.txt | ||
---|---|---|
188 ↗ | (On Diff #67046) | These are just link dependencies for libc++experimental.a, libc++.a and libc++.so` will get build in any case (see the cxx meta-target). Using both branches here imply lib/libc++.a -lc++ as link dependency which is most certainly incorrect. In fact, it seems that CMake ignores link dependencies for static libraries (which is a correct behavior) so this entire block can be safely removed. |
lib/CMakeLists.txt | ||
---|---|---|
188 ↗ | (On Diff #67046) | Ah, missed the explicit static on the cxx_experimental. |