meson: add comments in the target-specific flags section
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
eed56e9a89
commit
b7a75c8c42
@ -238,6 +238,7 @@ endif
|
|||||||
# Target-specific checks and dependencies #
|
# Target-specific checks and dependencies #
|
||||||
###########################################
|
###########################################
|
||||||
|
|
||||||
|
# Fuzzing
|
||||||
if get_option('fuzzing') and get_option('fuzzing_engine') == '' and \
|
if get_option('fuzzing') and get_option('fuzzing_engine') == '' and \
|
||||||
not cc.links('''
|
not cc.links('''
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -249,6 +250,7 @@ if get_option('fuzzing') and get_option('fuzzing_engine') == '' and \
|
|||||||
error('Your compiler does not support -fsanitize=fuzzer')
|
error('Your compiler does not support -fsanitize=fuzzer')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Tracing backends
|
||||||
if 'ftrace' in get_option('trace_backends') and targetos != 'linux'
|
if 'ftrace' in get_option('trace_backends') and targetos != 'linux'
|
||||||
error('ftrace is supported only on Linux')
|
error('ftrace is supported only on Linux')
|
||||||
endif
|
endif
|
||||||
@ -262,6 +264,7 @@ if 'syslog' in get_option('trace_backends') and not cc.compiles('''
|
|||||||
error('syslog is not supported on this system')
|
error('syslog is not supported on this system')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Miscellaneous Linux-only features
|
||||||
if targetos != 'linux' and get_option('mpath').enabled()
|
if targetos != 'linux' and get_option('mpath').enabled()
|
||||||
error('Multipath is supported only on Linux')
|
error('Multipath is supported only on Linux')
|
||||||
endif
|
endif
|
||||||
@ -271,6 +274,7 @@ if targetos != 'linux' and get_option('multiprocess').enabled()
|
|||||||
endif
|
endif
|
||||||
multiprocess_allowed = targetos == 'linux' and not get_option('multiprocess').disabled()
|
multiprocess_allowed = targetos == 'linux' and not get_option('multiprocess').disabled()
|
||||||
|
|
||||||
|
# Target-specific libraries and flags
|
||||||
libm = cc.find_library('m', required: false)
|
libm = cc.find_library('m', required: false)
|
||||||
threads = dependency('threads')
|
threads = dependency('threads')
|
||||||
util = cc.find_library('util', required: false)
|
util = cc.find_library('util', required: false)
|
||||||
@ -311,6 +315,7 @@ elif targetos == 'openbsd'
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Target-specific configuration of accelerators
|
||||||
accelerators = []
|
accelerators = []
|
||||||
if not get_option('kvm').disabled() and targetos == 'linux'
|
if not get_option('kvm').disabled() and targetos == 'linux'
|
||||||
accelerators += 'CONFIG_KVM'
|
accelerators += 'CONFIG_KVM'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user