From 9ecd9463de6ba7a9f0648da16ef9371dd8a202f0 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 14 Apr 2020 17:41:00 +0100 Subject: 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 Suggested-by: Dylan Baker Reviewed-by: Dylan Baker Reviewed-by: Jose Fonseca Reviewed-by: Alyssa Rosenzweig Part-of: --- meson_options.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'meson_options.txt') diff --git a/meson_options.txt b/meson_options.txt index a39596a6f19..a342354acfc 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -250,9 +250,10 @@ option( ) option( 'shared-llvm', - type : 'boolean', - value : true, - description : 'Whether to link llvm shared or statically.' + type : 'combo', + value : 'auto', + choices : ['auto', 'true', 'false'], + description : 'Whether to link LLVM shared or statically.' ) option( 'valgrind', -- cgit v1.2.3