[all-commits] [llvm/llvm-project] 4230fa: [libcxxabi] Prevent cmake from removing our explic...

Sam Clegg via All-commits all-commits at lists.llvm.org
Tue Nov 12 10:08:54 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4230fa939021e7a85f3ec06a4b1d8c661dfe329b
      https://github.com/llvm/llvm-project/commit/4230fa939021e7a85f3ec06a4b1d8c661dfe329b
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2019-11-12 (Tue, 12 Nov 2019)

  Changed paths:
    M libcxxabi/CMakeLists.txt

  Log Message:
  -----------
  [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




More information about the All-commits mailing list