Fallback to clang in PATH with meson

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: a32ffeebfa63dd3e6ee8f9498a7e59ebd8abba8d
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-07-27T10:54:06Z
Releases: 17.0
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

Files

PathChange+/−
meson.build modified +4 −1

Discussion