fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1 @@
|
||||
#warning Make sure this is not fatal
|
||||
@@ -0,0 +1,22 @@
|
||||
project('test default options', 'c',
|
||||
default_options: {
|
||||
'bool': true,
|
||||
'int': 42,
|
||||
'str': 'foo',
|
||||
'array': ['foo'],
|
||||
'werror': true,
|
||||
},
|
||||
)
|
||||
|
||||
assert(get_option('bool') == true)
|
||||
assert(get_option('int') == 42)
|
||||
assert(get_option('str') == 'foo')
|
||||
assert(get_option('array') == ['foo'])
|
||||
assert(get_option('werror') == true)
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
# MSVC does not support #warning
|
||||
if cc.get_id() != 'msvc'
|
||||
static_library('foo', 'lib.c', override_options: {'werror': false})
|
||||
endif
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
option('bool', type: 'boolean', value: false)
|
||||
option('int', type: 'integer', value: 0)
|
||||
option('str', type: 'string', value: 'bar')
|
||||
option('array', type: 'array', value: ['bar'])
|
||||
Reference in New Issue
Block a user