Skip to content

Commit 99ba795

Browse files
committed
Detect LLVM 7 without specifying binaries explicitly.
Before this commit LLVM 7 was supported, but only if one explicitly provided LLVM_CONFIG= and CLANG= paths. As LLVM 7 is the first version that includes our upstreamed debugging and profiling features, and as debian is planning to default to 7 due to wider architecture support, it seems good to support auto-detecting that version. Author: Christoph Berg Discussion: https://postgr.es/m/20180912124517.GD24584@msg.df7cb.de Backpatch: 11, where LLVM was introduced
1 parent ff4220e commit 99ba795

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/llvm.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ AC_DEFUN([PGAC_LLVM_SUPPORT],
1313
AC_REQUIRE([AC_PROG_AWK])
1414
1515
AC_ARG_VAR(LLVM_CONFIG, [path to llvm-config command])
16-
PGAC_PATH_PROGS(LLVM_CONFIG, llvm-config llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9)
16+
PGAC_PATH_PROGS(LLVM_CONFIG, llvm-config llvm-config-7 llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9)
1717
1818
# no point continuing if llvm wasn't found
1919
if test -z "$LLVM_CONFIG"; then
@@ -31,7 +31,7 @@ AC_DEFUN([PGAC_LLVM_SUPPORT],
3131
3232
# need clang to create some bitcode files
3333
AC_ARG_VAR(CLANG, [path to clang compiler to generate bitcode])
34-
PGAC_PATH_PROGS(CLANG, clang clang-6.0 clang-5.0 clang-4.0 clang-3.9)
34+
PGAC_PATH_PROGS(CLANG, clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9)
3535
if test -z "$CLANG"; then
3636
AC_MSG_ERROR([clang not found, but required when compiling --with-llvm, specify with CLANG=])
3737
fi

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4811,7 +4811,7 @@ done
48114811

48124812

48134813
if test -z "$LLVM_CONFIG"; then
4814-
for ac_prog in llvm-config llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9
4814+
for ac_prog in llvm-config llvm-config-7 llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9
48154815
do
48164816
# Extract the first word of "$ac_prog", so it can be a program name with args.
48174817
set dummy $ac_prog; ac_word=$2
@@ -4882,7 +4882,7 @@ fi
48824882
# need clang to create some bitcode files
48834883

48844884
if test -z "$CLANG"; then
4885-
for ac_prog in clang clang-6.0 clang-5.0 clang-4.0 clang-3.9
4885+
for ac_prog in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9
48864886
do
48874887
# Extract the first word of "$ac_prog", so it can be a program name with args.
48884888
set dummy $ac_prog; ac_word=$2

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy