Fallback to clang in PATH with meson

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 23be5206327cc09a870db346545f7a6a9e2485b3
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-07-27T10:54:38Z
Releases: 16.4
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