[libcxx] Fix regression where `ninja all` doesn't copy libcxx headers
Before 6db314e8, when running cmake with clang, libcxx, and compiler-rt enabled, building `ninja all` would run the generate-cxx-headers target, due to the sanitizers depending on it. After 6db314e8, if LIBCXX_ENABLE_SHARED and LIBCXX_ENABLE_STATIC and LIBCXX_INCLUDE_TESTS and LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY are disabled (https://reviews.llvm.org/D82702#2153627), `ninja all` no longer copies the libcxx headers, which means clang can't compile programs like `#include <string>` on macOS. Explicitly add the copy target to the all target to restore the old behavior.
Loading
Please sign in to comment