[libcxxabi] Prevent cmake from removing our explicit system C++ include paths
authorSam Clegg <sbc@chromium.org>
Thu, 7 Nov 2019 22:51:25 +0000 (14:51 -0800)
committerSam Clegg <sbc@chromium.org>
Tue, 12 Nov 2019 18:08:40 +0000 (10:08 -0800)
commit4230fa939021e7a85f3ec06a4b1d8c661dfe329b
tree10799a22155c64ec24177237c59a63394b40af9a
parentef150e2ea51960e4a9689850d16b2dda355cdcd8
[libcxxabi] Prevent cmake from removing our explicit system C++ include paths

We build with `-nostdinc++` and add our own header path via
`LIBCXXABI_LIBCXX_INCLUDES`.  However cmake tried to be clever and if
`LIBCXXABI_LIBCXX_INCLUDES` happens to match the compilers system path
it will remove the `-I` flag meaning we can't access any C++ headers.

Ideally cmake would be able see that we are using `-nostdinc++` and
disable this behaviour.

Differential Revision: https://reviews.llvm.org/D69973
libcxxabi/CMakeLists.txt