accel/qtest: Build once as common object
No code within qtest.c uses target-specific knowledge: build it once as target-agnostic common unit. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20260225053408.18426-1-philmd@linaro.org>
Philippe Mathieu-Daudé committed
Feb 25, 2026 at 06:29 UTC
c574ff9245c7e9d10433efd60df2319ff4d69084
2 files changed
+4
-4
accel/qtest/meson.build
+4
-1
@@ -1 +1,4 @@
1
-qtest_module_ss.add(when: ['CONFIG_SYSTEM_ONLY'], if_true: files('qtest.c'))
1
+qtest_module_ss = ss.source_set()
2
+qtest_module_ss.add(files('qtest.c'))
3
+
4
+modules += {'accel': {'qtest': qtest_module_ss}}
meson.build
-3
@@ -3897,9 +3897,6 @@ subdir('linux-user')
3897
subdir('tests/qtest/libqos')
3898
subdir('tests/qtest/fuzz')
3899
3900
-# accel modules
3901
-target_modules += { 'accel' : { 'qtest': qtest_module_ss }}
3902
-
3900
##############################################
3901
# Internal static_libraries and dependencies #
3902
##############################################