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.
pull/5727/head
Eric Leblond 5 years ago committed by Victor Julien
parent 512b0350a0
commit 37b1595c20

@ -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]])

Loading…
Cancel
Save