meson: update llvm dependency logic for meson 0.54.0
authorDylan Baker <dylan@pnwbakers.com>
Tue, 14 Apr 2020 17:06:35 +0000 (10:06 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Apr 2020 20:55:12 +0000 (20:55 +0000)
commitfdd0ce12ac88e433c7712acd5226fa07dc870057
tree86e8bbbd77e620299ed0a8f06813e7130b5b07b4
parent8e3696137f2cb7b4f5a3824f26186ecbb06f9282
meson: update llvm dependency logic for meson 0.54.0

In meson 0.54.0 I fixed the llvm cmake dependency to return "not found"
if shared linking is requested. This means that for 0.54.0 and later we
don't need to do anything, and for earlier versions we only need to
change the logic to force the config-tool method if shared linking is
required.

Fixes: 821cf6942a390f5f64d8a2cff9933b24c84f7dc1
       ("meson: Use cmake to find LLVM when building for window")

Acked-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4556>
meson.build