On 19/02/21 14:30, Thomas Huth wrote:
But how could tests see this?
The test are generic, not target-specific code, so they can not see
things like NEED_CPU_H, of course.
But CONFIG_TCG seems to be defined in config-host.h, so you should be
able to use that define, shouldn't you?
Yes, CONFIG_TCG is defined in config_hsot just for that reason:
tcg_arch = config_host['ARCH']
if not get_option('tcg').disabled()
...
accelerators += 'CONFIG_TCG'
config_host += { 'CONFIG_TCG': 'y' }
endif
It's ugly, but I kept it that way when moving accelerator configuration
to Meson.
Paolo