Fallback to clang in PATH with meson
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 27 Jul 2024 10:53:11 +0000 (13:53 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 27 Jul 2024 10:54:06 +0000 (13:54 +0300)
commita32ffeebfa63dd3e6ee8f9498a7e59ebd8abba8d
tree5a42f0cc970e40e05ac381cfeb4be006074c2636
parent469b97c52413adc85bab7d7ee6e0a9cb5adddf30
Fallback to clang in PATH with meson

Some distributions put clang into a different path than the llvm
binary path.

For example, this is the case on NixOS / nixpkgs, which failed to find
clang with meson before this patch.

Author: Wolfgang Walther
Reviewed-by: Nazir Bilal Yavuz, Alvaro Herrera, Peter Eisentraut
Reviewed-by: Tristan Partin
Discussion: https://www.postgresql.org/message-id/ca8f37e1-a2c3-40e2-91f6-59c3d3652ad4@technowledgy.de
Backpatch: 16-, where meson support was added
meson.build