[all-commits] [llvm/llvm-project] 0ba43f: [sanitizer] Add -lresolv only for non-Android non-...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Jun 13 19:12:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ba43f4c2b263268f6fbc56bb3f6d43936781957
      https://github.com/llvm/llvm-project/commit/0ba43f4c2b263268f6fbc56bb3f6d43936781957
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-06-13 (Mon, 13 Jun 2022)

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

  Log Message:
  -----------
  [sanitizer] Add -lresolv only for non-Android non-musl Linux

Refine the D127145 logic with my original suggestion.
It turns out that many OSes don't have libresolv.




More information about the All-commits mailing list