[all-commits] [llvm/llvm-project] 6dce56: [Driver] add -lresolv for all but Android.

kda via All-commits all-commits at lists.llvm.org
Mon Jun 6 15:49:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6dce56b2a3082191aa3d26abd4f05cf518d98356
      https://github.com/llvm/llvm-project/commit/6dce56b2a3082191aa3d26abd4f05cf518d98356
  Author: Kevin Athey <kda at google.com>
  Date:   2022-06-06 (Mon, 06 Jun 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M compiler-rt/test/msan/Linux/b64.cpp
    M compiler-rt/test/msan/Linux/dn_expand.cpp
    M compiler-rt/test/sanitizer_common/TestCases/Linux/b64.cpp
    M compiler-rt/test/sanitizer_common/TestCases/Linux/dn_expand.cpp

  Log Message:
  -----------
  [Driver] add -lresolv for all but Android.

As there 3 intercepts that depend on libresolv, link tests in ./configure scripts may be confuse by the presence of resolv symbols (i.e. dn_expand) even with -lresolv and get a runtime error.

Android provides the functionality in libc.

https://reviews.llvm.org/D122849
https://reviews.llvm.org/D126851

Reviewed By: eugenis, MaskRay

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




More information about the All-commits mailing list