From 3d09a8271aa2e57d46d821cd55e3964713a6b7ee Mon Sep 17 00:00:00 2001 From: Doyle Rowland Date: Sun, 28 Jul 2019 17:49:13 -0400 Subject: [PATCH 1/2] fix issue 36002; fail to find -llvm-profdata --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b9759e12f89f74..a1812e1ee7ec0c 100644 --- a/configure.ac +++ b/configure.ac @@ -1338,7 +1338,7 @@ if test "$Py_LTO" = 'true' ; then case $CC in *clang*) 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) if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" then @@ -1404,7 +1404,7 @@ AC_SUBST(LLVM_PROF_MERGER) AC_SUBST(LLVM_PROF_FILE) AC_SUBST(LLVM_PROF_ERR) 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) if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" then From 77422b692926cc82f5313fe185fd590304894e19 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 13 Sep 2019 14:12:41 +0100 Subject: [PATCH 2/2] add blurb --- Misc/NEWS.d/next/Build/2019-09-13-14-12-36.bpo-36002.Bcl4oe.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2019-09-13-14-12-36.bpo-36002.Bcl4oe.rst diff --git a/Misc/NEWS.d/next/Build/2019-09-13-14-12-36.bpo-36002.Bcl4oe.rst b/Misc/NEWS.d/next/Build/2019-09-13-14-12-36.bpo-36002.Bcl4oe.rst new file mode 100644 index 00000000000000..374e7b234cfe64 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2019-09-13-14-12-36.bpo-36002.Bcl4oe.rst @@ -0,0 +1,2 @@ +Locate ``llvm-profdata`` and ``llvm-ar`` binaries using ``AC_PATH_TOOL`` +rather than ``AC_PATH_TARGET_TOOL``.