meson: Tie adding C++ support to the llvm Meson option
authorAndres Freund <andres@anarazel.de>
Wed, 12 Jul 2023 23:26:02 +0000 (16:26 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 12 Jul 2023 23:26:02 +0000 (16:26 -0700)
commit7a7f13afee9229fe738c390d39aa44c394400c04
treebadf6125d5947e2f1c51de6b7e0eb8d4c916c13a
parent47caa710cebe386c1ab0de89c2a9ff286c9bcb2a
meson: Tie adding C++ support to the llvm Meson option

In the event the llvm option is defined to be 'auto', it is possible
that the host machine might not have a C++ compiler. If that is the
case, then we shouldn't continue reaching for the llvm dependency.

To make it easier to understand the case where LLVM support is disabled due to
lacking a C++ compiler, add a message noting that fact.

Author: Tristan Partin <tristan@neon.tech>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CSPIJVUDZFKX.3KHMOAVGF94RV@c3po
Backpatch: 16-, where meson support was added
meson.build