diff mbox series

[PULL,02/14] tests/fp: Do not build softfloat3 tests if TCG is disabled

Message ID 20220705103816.608166-3-thuth@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,01/14] tests: fix test-cutils leaks | expand

Commit Message

Thomas Huth July 5, 2022, 10:38 a.m. UTC
From: Philippe Mathieu-Daudé <f4bug@amsat.org>

Technically we don't need the TCG accelerator to run the
softfloat3 tests. However it is unlikely an interesting
build combination. Developers using softfloat3 likely use
TCG too. Similarly, developers disabling TCG shouldn't
mind much about softfloat3 tests.

This reduces a non-TCG build by 474 objects!

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220204152924.6253-3-f4bug@amsat.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 tests/fp/meson.build | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/tests/fp/meson.build b/tests/fp/meson.build
index 8bd0979f67..2b4f00b916 100644
--- a/tests/fp/meson.build
+++ b/tests/fp/meson.build
@@ -1,3 +1,6 @@ 
+if 'CONFIG_TCG' not in config_all
+  subdir_done()
+endif
 # There are namespace pollution issues on Windows, due to osdep.h
 # bringing in Windows headers that define a FLOAT128 type.
 if targetos == 'windows'