[libcxx] Add LIBCXX_EXTRA_SITE_DEFINES for adding extra defines in __config_site
authorMartin Storsjö <martin@martin.st>
Mon, 20 Dec 2021 23:19:34 +0000 (01:19 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 21 Dec 2021 22:43:29 +0000 (00:43 +0200)
commitf68e89044a2ee14babd1af8fc406c9bab080992a
tree97a15ef099b493c00f8816776ce2e5042b46e4f8
parentc1a14a5c3e6fef181f920b66ec159b6bfac4d457
[libcxx] Add LIBCXX_EXTRA_SITE_DEFINES for adding extra defines in __config_site

This is similar to the existing setting LIBCXX_ABI_DEFINES, with
the difference that this also allows setting other defines than
ones that start with "_LIBCPP_ABI_", and allows setting defines
to a specific value.

This allows avoiding using LIBCXX_TEST_COMPILER_FLAGS in two
CI configurations.

Differential Revision: https://reviews.llvm.org/D116109
libcxx/CMakeLists.txt
libcxx/cmake/caches/MinGW.cmake
libcxx/include/__config_site.in
libcxx/utils/ci/run-buildbot