diff options
author | Thomas Munro | 2023-10-22 01:17:00 +0000 |
---|---|---|
committer | Thomas Munro | 2023-10-22 01:35:00 +0000 |
commit | 0a6e2c7f86940f6d7c18c5dc2c50bf5f7ed3654d (patch) | |
tree | c63380873b68d58da120a2fbe71015781b631de5 | |
parent | e98f47d570a22e7aaaf71b79d6ce6852701bbd8d (diff) |
Log LLVM library version in configure output.
When scanning build farm results, it's useful to be able to see which
version is in use. For the Meson build system, this information was
already displayed.
Back-patch to all supported branches.
Discussion: https://postgr.es/m/4022690.1697852728%40sss.pgh.pa.us
-rw-r--r-- | config/llvm.m4 | 1 | ||||
-rwxr-xr-x | configure | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/config/llvm.m4 b/config/llvm.m4 index d5ddee3e6df..51043289713 100644 --- a/config/llvm.m4 +++ b/config/llvm.m4 @@ -28,6 +28,7 @@ AC_DEFUN([PGAC_LLVM_SUPPORT], if echo $pgac_llvm_version | $AWK -F '.' '{ if ([$]1 >= 4 || ([$]1 == 3 && [$]2 >= 9)) exit 1; else exit 0;}';then AC_MSG_ERROR([$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required]) fi + AC_MSG_NOTICE([using llvm $pgac_llvm_version]) # need clang to create some bitcode files AC_ARG_VAR(CLANG, [path to clang compiler to generate bitcode]) diff --git a/configure b/configure index f74c9e65f07..a62f1290126 100755 --- a/configure +++ b/configure @@ -4893,6 +4893,8 @@ fi if echo $pgac_llvm_version | $AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then as_fn_error $? "$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5 fi + { $as_echo "$as_me:${as_lineno-$LINENO}: using llvm $pgac_llvm_version" >&5 +$as_echo "$as_me: using llvm $pgac_llvm_version" >&6;} # need clang to create some bitcode files |