[all-commits] [llvm/llvm-project] 11efd0: [CMake] Avoid accidental C++ standard library depe...

Petr Hosek via All-commits all-commits at lists.llvm.org
Sat Oct 31 02:37:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 11efd002b1e6191d97abfec4e7b3d390d8589197
      https://github.com/llvm/llvm-project/commit/11efd002b1e6191d97abfec4e7b3d390d8589197
  Author: Petr Hosek <phosek at google.com>
  Date:   2020-10-31 (Sat, 31 Oct 2020)

  Changed paths:
    M compiler-rt/CMakeLists.txt
    M compiler-rt/lib/fuzzer/CMakeLists.txt
    M compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
    M compiler-rt/lib/xray/CMakeLists.txt

  Log Message:
  -----------
  [CMake] Avoid accidental C++ standard library dependency in sanitizers

While sanitizers don't use C++ standard library, we could still end
up accidentally including or linking it just by the virtue of using
the C++ compiler. Pass -nostdinc++ and -nostdlib++ to avoid these
accidental dependencies.

Reviewed By: smeenai, vitalybuka

Differential Revision: https://reviews.llvm.org/D88922




More information about the All-commits mailing list