The previous attempt (commit f77147cd4de) doesn't work as
expected, as we still have CONFIG_TCG=1 when using:

  configure --disable-system --disable-user

Use Meson's get_option() instead to remove the softfloat tests
when building with --disable-tcg.

Suggested-by: Claudio Fontana <cfont...@suse.de>
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
Cc: Richard Henderson <richard.hender...@linaro.org>
Cc: Alex Bennée <alex.ben...@linaro.org>
Cc: Emilio G. Cota <c...@braap.org>
---
 tests/meson.build | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tests/meson.build b/tests/meson.build
index 55a7b082751..250fbc99a36 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -76,11 +76,8 @@
      workdir: meson.current_source_dir() / 'decode',
      suite: 'decodetree')
 
-if 'CONFIG_TCG' in config_all
-  subdir('fp')
-endif
-
 if not get_option('tcg').disabled()
+  subdir('fp')
   if 'CONFIG_PLUGIN' in config_host
     subdir('plugin')
   endif
-- 
2.26.2


Reply via email to