accel/qtest: Build once as common object
PATCH 1/1 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é <[email protected]>
--- meson.build | 3 --- accel/qtest/meson.build | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-)
meson.build +0 -3
@@ -3867,9 +3867,6 @@ subdir('linux-user') subdir('tests/qtest/libqos') subdir('tests/qtest/fuzz') -# accel modules -target_modules += { 'accel' : { 'qtest': qtest_module_ss }} - ############################################## # Internal static_libraries and dependencies # ##############################################
accel/qtest/meson.build +4 -1
@@ -1 +1,4 @@ -qtest_module_ss.add(when: ['CONFIG_SYSTEM_ONLY'], if_true: files('qtest.c')) +qtest_module_ss = ss.source_set() +qtest_module_ss.add(files('qtest.c')) + +modules += {'accel': {'qtest': qtest_module_ss}}
Signature · 1 line
2.52.0
Quoted 9 lines · Philippe Mathieu-Daudé
No code within
qtest.cuses target-specific knowledge:
build it once as target-agnostic common unit.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- meson.build | 3 --- accel/qtest/meson.build | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-)
It seems like it was not needed to have it per target indeed.
Reviewed-by Pierrick Bouvier <[email protected]>
Quoted 8 lines · Philippe Mathieu-Daudé
No code within
qtest.cuses target-specific knowledge:
build it once as target-agnostic common unit.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- meson.build | 3 --- accel/qtest/meson.build | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-)
Patch queued, thanks.