[all-commits] [llvm/llvm-project] 0c425b: [gn build] Add support for check-asan

aeubanks via All-commits all-commits at lists.llvm.org
Thu Jan 27 16:10:14 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c425b43b952f4f5a93792437c52d5b6e43c74d3
      https://github.com/llvm/llvm-project/commit/0c425b43b952f4f5a93792437c52d5b6e43c74d3
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-01-27 (Thu, 27 Jan 2022)

  Changed paths:
    M llvm/utils/gn/build/BUILD.gn
    M llvm/utils/gn/secondary/BUILD.gn
    M llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
    M llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
    M llvm/utils/gn/secondary/compiler-rt/lib/sanitizer_common/BUILD.gn
    M llvm/utils/gn/secondary/compiler-rt/lib/ubsan/BUILD.gn
    M llvm/utils/gn/secondary/compiler-rt/test/BUILD.gn
    A llvm/utils/gn/secondary/compiler-rt/test/asan/BUILD.gn

  Log Message:
  -----------
  [gn build] Add support for check-asan

With these changes, check-asan passes on Linux and Windows.

There are a couple libraries we need to add support for, asan_static, asan_preinit, and the shared library version of asan proper.
Since we need to build the asan proper sources twice, once with -DASAN_DYNAMIC and once without, those sources are no longer in a source_set.
Much of the check-asan target is taken from the existing check-hwasan target.

Reviewed By: thakis

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




More information about the All-commits mailing list