diff options
author | Louis Dionne <ldionne@apple.com> | 2019-10-03 17:20:50 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-10-03 17:20:50 +0000 |
commit | c5b74bf6e548441064eabc54e6078c35cd6116a7 (patch) | |
tree | d4f69b15ca4291b0a57ce924b10b139cd17d54f0 /libcxx/src | |
parent | e6f51713054f8199c61a9dc94faf3dbce1221c02 (diff) | |
download | bcm5719-llvm-c5b74bf6e548441064eabc54e6078c35cd6116a7.tar.gz bcm5719-llvm-c5b74bf6e548441064eabc54e6078c35cd6116a7.zip |
[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
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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 |