From 37b1595c20959353ec438860dc5a49bcae227aa8 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cb6c1559bd..4cbbe7249f 100644 --- a/configure.ac +++ b/configure.ac @@ -487,7 +487,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]]) -- 2.47.2