From c5b74bf6e548441064eabc54e6078c35cd6116a7 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Thu, 3 Oct 2019 17:20:50 +0000 Subject: [libc++] Add a per-target flag to include the generated config_site This allows propagating the include automatically to targets that depend on one of the libc++ targets such as the benchmarks. Note that the GoogleBenchmark build itself still needs to manually specify the -include, since I don't know of any way to have an external project link against one of the libc++ targets (which would propagate the -include automatically). llvm-svn: 373631 --- libcxx/src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcxx/src') diff --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt index c9c3f180870..93d48f1b7dc 100644 --- a/libcxx/src/CMakeLists.txt +++ b/libcxx/src/CMakeLists.txt @@ -234,6 +234,7 @@ if (LIBCXX_ENABLE_SHARED) cxx_set_common_defines(cxx_shared) cxx_add_warning_flags(cxx_shared) cxx_add_windows_flags(cxx_shared) + cxx_add_config_site(cxx_shared) # Link against LLVM libunwind if (LIBCXXABI_USE_LLVM_UNWINDER) @@ -337,6 +338,7 @@ if (LIBCXX_ENABLE_STATIC) cxx_set_common_defines(cxx_static) cxx_add_warning_flags(cxx_static) cxx_add_windows_flags(cxx_static) + cxx_add_config_site(cxx_static) if (LIBCXX_HERMETIC_STATIC_LIBRARY) # If the hermetic library doesn't define the operator new/delete functions -- cgit v1.2.3