[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: meson, NEED_CPU_H, CONFIG_TCG and tests/
From: |
Paolo Bonzini |
Subject: |
Re: meson, NEED_CPU_H, CONFIG_TCG and tests/ |
Date: |
Fri, 19 Feb 2021 17:04:52 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
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
- meson, NEED_CPU_H, CONFIG_TCG and tests/, Claudio Fontana, 2021/02/19
- Re: meson, NEED_CPU_H, CONFIG_TCG and tests/, Thomas Huth, 2021/02/19
- Re: meson, NEED_CPU_H, CONFIG_TCG and tests/,
Paolo Bonzini <=