meson: Make shared-llvm into a tri-state boolean
authorDaniel Stone <daniels@collabora.com>
Tue, 14 Apr 2020 16:41:00 +0000 (17:41 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Apr 2020 12:18:36 +0000 (12:18 +0000)
commit9ecd9463de6ba7a9f0648da16ef9371dd8a202f0
tree620a14fa467cfcdce8ea38cbd870ce47b5fd2673
parent0c05d46237db3095ef92d61452d886286806a827
meson: Make shared-llvm into a tri-state boolean

Choosing LLVM's link mode is legitimate on UNIX systems, but only static
actually really works under Windows.

Give shared-llvm a default 'auto' mode which will pick the previous
default of true (shared) on UNIX systems, but newly defaulting to false
(static) on Windows.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Suggested-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4555>
meson.build
meson_options.txt