Skip to content

Commit

Permalink
configure: fix llc detection on recent Debian
Browse files Browse the repository at this point in the history
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 37b1595)
  • Loading branch information
regit authored and lukashino committed Dec 5, 2023
1 parent b8cf5ac commit 390afcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand Down

0 comments on commit 390afcb

Please sign in to comment.