[all-commits] [llvm/llvm-project] ed4230: [sanitizers] Pass CMAKE_C_FLAGS into TSan buildgo ...

Joachim via All-commits all-commits at lists.llvm.org
Mon Feb 22 09:51:03 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed4230732adeb04a23fc25b7a5924e423ba5ac91
      https://github.com/llvm/llvm-project/commit/ed4230732adeb04a23fc25b7a5924e423ba5ac91
  Author: Joachim Protze <protze at itc.rwth-aachen.de>
  Date:   2021-02-22 (Mon, 22 Feb 2021)

  Changed paths:
    M compiler-rt/lib/tsan/CMakeLists.txt
    M compiler-rt/lib/tsan/go/buildgo.sh

  Log Message:
  -----------
  [sanitizers] Pass CMAKE_C_FLAGS into TSan buildgo script

When compiling with ccache, compiler commands get split into smaller steps
and clang's default -Wunused-command-line-argument complains about unused
include directory arguments. In combination -Werror, compilation aborts.

If CMAKE_C_FLAGS contains -Wno-unused-command-line-argument or
-Wno-error=unused-command-line-argument, the latter flag is passed into the
build script.

This is a re-commit. The previous version was reverted because of failing
tests.

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




More information about the All-commits mailing list