configure: move environment-specific defaults to config-meson.cross

Store the -Werror and SMBD defaults in the machine file, which still allows
them to be overridden on the command line and enables automatic parsing
of the related options.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2023-10-16 08:20:13 +02:00
parent c36dd41ba2
commit 090a188cc1
3 changed files with 21 additions and 24 deletions

View file

@ -28,7 +28,6 @@ import sys
SKIP_OPTIONS = {
"default_devices",
"fuzzing_engine",
"smbd",
}
OPTION_NAMES = {
@ -47,6 +46,7 @@ OPTION_NAMES = {
# Options that configure autodetects, even though meson defines them as boolean
AUTO_OPTIONS = {
"plugins",
"werror",
}
BUILTIN_OPTIONS = {
@ -64,6 +64,7 @@ BUILTIN_OPTIONS = {
"prefix",
"strip",
"sysconfdir",
"werror",
}
LINE_WIDTH = 76