Currently if you change the `choices` field in the meson_options.txt file, no update will be done until `meson setup --wipe` is called. Now if the choices change then the options will be properly merged. If the currently select value is still valid it is guaranteed to be kept, if it is now invalid the new default value will be used and a warning will be printed. Fixes #7386pull/7817/head
parent
c4fa876925
commit
94ac51fdda
5 changed files with 82 additions and 5 deletions
@ -0,0 +1 @@ |
||||
project('change option choices') |
@ -0,0 +1,13 @@ |
||||
option( |
||||
'combo', |
||||
type : 'combo', |
||||
choices : ['a', 'b', 'c'], |
||||
value : 'a', |
||||
) |
||||
|
||||
option( |
||||
'array', |
||||
type : 'array', |
||||
choices : ['a', 'b', 'c'], |
||||
value : ['a'], |
||||
) |
@ -0,0 +1,13 @@ |
||||
option( |
||||
'combo', |
||||
type : 'combo', |
||||
choices : ['b', 'c', 'd'], |
||||
value : 'b', |
||||
) |
||||
|
||||
option( |
||||
'array', |
||||
type : 'array', |
||||
choices : ['b', 'c', 'd'], |
||||
value : ['b'], |
||||
) |
Loading…
Reference in new issue