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

Petr Hosek via All-commits all-commits at lists.llvm.org
Wed Oct 14 18:27:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 287c318690f19fcbe337211278798d97ccf7884e
      https://github.com/llvm/llvm-project/commit/287c318690f19fcbe337211278798d97ccf7884e
  Author: Petr Hosek <phosek at google.com>
  Date:   2020-10-14 (Wed, 14 Oct 2020)

  Changed paths:
    M compiler-rt/CMakeLists.txt
    M compiler-rt/cmake/Modules/CompilerRTUtils.cmake
    M compiler-rt/cmake/config-ix.cmake
    M compiler-rt/lib/asan/CMakeLists.txt
    M compiler-rt/lib/fuzzer/CMakeLists.txt
    M compiler-rt/lib/hwasan/CMakeLists.txt
    M compiler-rt/lib/profile/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.

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




More information about the All-commits mailing list