From 558a5a3fcdc4af5fb219199efdaf0607b4b60403 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Tue, 5 Jan 2021 21:40:33 +0100 Subject: [PATCH] configure: fix llc detection on recent Debian Where clang --version was returning: clang version 9.0.1-15+b1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin Newer version like clang-10 on Debian are returning: Debian clang version 10.0.1-8+b1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin As a result the parsing was failing to determine which llc was available on the system. Ticket: #6598 (cherry picked from commit 37b1595c20959353ec438860dc5a49bcae227aa8) --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 32b276a67af1..87f507f911a5 100644 --- a/configure.ac +++ b/configure.ac @@ -450,7 +450,7 @@ [ AS_IF([test "$CLANG" != no], [ - llc_candidates=$($CLANG --version | \ + llc_candidates=$($CLANG --version | sed -e 's/.*clang version/clang version/' | \ awk '/^clang version/ { split($3, v, "."); printf("llc-%s.%s llc-%s llc", v[[1]], v[[2]], v[[1]])