[all-commits] [llvm/llvm-project] d9d20b: Honor -fno-sanitize-link-runtime for libclang_rt.a...

Colin Cross via All-commits all-commits at lists.llvm.org
Mon Dec 18 17:15:54 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9d20bd81f2f95c9b7510725fb76975e8123a542
      https://github.com/llvm/llvm-project/commit/d9d20bd81f2f95c9b7510725fb76975e8123a542
  Author: Colin Cross <ccross at android.com>
  Date:   2023-12-18 (Mon, 18 Dec 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/test/Driver/sanitizer-ld.c

  Log Message:
  -----------
  Honor -fno-sanitize-link-runtime for libclang_rt.asan_static (#66414)

https://reviews.llvm.org/D122407 added a static link against
libclang_rt.asan_static whenever ASAN is linked, but ignored the
-fno-sanitize-link-runtime flag. Every other conditional in
collectSanitizerRuntimes is already checking for SanArgs.linkRuntimes(),
move it to the top of the function so that newly added conditionals
don't need to remember to check it.




More information about the All-commits mailing list