closes bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998)

This commit is contained in:
Doyle Rowland 2019-09-13 09:38:07 -04:00 committed by Benjamin Peterson
parent 0765411d51
commit 0519d497b0
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,2 @@
Locate ``llvm-profdata`` and ``llvm-ar`` binaries using ``AC_PATH_TOOL``
rather than ``AC_PATH_TARGET_TOOL``.

View File

@ -1338,7 +1338,7 @@ if test "$Py_LTO" = 'true' ; then
case $CC in case $CC in
*clang*) *clang*)
AC_SUBST(LLVM_AR) AC_SUBST(LLVM_AR)
AC_PATH_TARGET_TOOL(LLVM_AR, llvm-ar, '', ${llvm_path}) AC_PATH_TOOL(LLVM_AR, llvm-ar, '', ${llvm_path})
AC_SUBST(LLVM_AR_FOUND) AC_SUBST(LLVM_AR_FOUND)
if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
then then
@ -1404,7 +1404,7 @@ AC_SUBST(LLVM_PROF_MERGER)
AC_SUBST(LLVM_PROF_FILE) AC_SUBST(LLVM_PROF_FILE)
AC_SUBST(LLVM_PROF_ERR) AC_SUBST(LLVM_PROF_ERR)
AC_SUBST(LLVM_PROFDATA) AC_SUBST(LLVM_PROFDATA)
AC_PATH_TARGET_TOOL(LLVM_PROFDATA, llvm-profdata, '', ${llvm_path}) AC_PATH_TOOL(LLVM_PROFDATA, llvm-profdata, '', ${llvm_path})
AC_SUBST(LLVM_PROF_FOUND) AC_SUBST(LLVM_PROF_FOUND)
if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
then then