@@ -3347,7 +3347,9 @@ foreach target : target_dirs
# Note that TARGET_BASE_ARCH ends up in config-target.h but it is
# not used to select files from sourcesets.
config_target_data.set('TARGET_' + v.to_upper(), 1)
- elif k == 'TARGET_NAME' or k == 'CONFIG_QEMU_INTERP_PREFIX'
+ elif k == 'TARGET_NAME'
+ # do nothing
+ elif k == 'CONFIG_QEMU_INTERP_PREFIX'
config_target_data.set_quoted(k, v)
elif v == 'y'
config_target_data.set(k, 1)
@@ -34,7 +34,6 @@
#pragma GCC poison TARGET_XTENSA
#pragma GCC poison TARGET_HAS_BFLT
-#pragma GCC poison TARGET_NAME
#pragma GCC poison TARGET_SUPPORTS_MTTCG
#pragma GCC poison TARGET_BIG_ENDIAN
#pragma GCC poison BSWAP_NEEDED
@@ -50,6 +50,8 @@
*/
#pragma GCC poison TARGET_WORDS_BIGENDIAN
+#pragma GCC poison TARGET_NAME
+
#include "qemu/compiler.h"
/* Older versions of C++ don't get definitions of various macros from
We don't use TARGET_NAME anymore, remove and poison it globally. The symbol is still defined in Makefiles by the configure script (it is required by tests/tcg/). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- meson.build | 4 +++- include/exec/poison.h | 1 - include/qemu/osdep.h | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-)