This change allows building both shared and static version of libc++ in a single build, sharing object files between both versions.
|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.