aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-05-29 17:45:11 +0100
committerPeter Maydell <peter.maydell@linaro.org>2025-05-29 17:45:11 +0100
commit54d1046f939c2c508a6b73531af83345306ecaa9 (patch)
tree0a210bd07e0046b929c4023eaa91ae2b87ac9a7e
parentf1bcfa81d84c2a7401f6dcbf8fc1c7b26ec18213 (diff)
downloadqemu-54d1046f939c2c508a6b73531af83345306ecaa9.zip
qemu-54d1046f939c2c508a6b73531af83345306ecaa9.tar.gz
qemu-54d1046f939c2c508a6b73531af83345306ecaa9.tar.bz2
target/arm: Only link with zlib when TCG is enabled
Since commit 538b764d341 ("target/arm: Move minor arithmetic helpers out of helper.c") we only use the zlib helpers under TCG. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-id: 20250513173928.77376-4-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--target/arm/meson.build1
-rw-r--r--target/arm/tcg/meson.build2
2 files changed, 2 insertions, 1 deletions
diff --git a/target/arm/meson.build b/target/arm/meson.build
index 2747f4b..dcba4ef 100644
--- a/target/arm/meson.build
+++ b/target/arm/meson.build
@@ -3,7 +3,6 @@ arm_common_ss = ss.source_set()
arm_ss.add(files(
'gdbstub.c',
))
-arm_ss.add(zlib)
arm_ss.add(when: 'TARGET_AARCH64', if_true: files(
'cpu64.c',
diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build
index 2d1502b..c59f0f0 100644
--- a/target/arm/tcg/meson.build
+++ b/target/arm/tcg/meson.build
@@ -56,6 +56,8 @@ arm_system_ss.add(files(
arm_system_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('cpu-v7m.c'))
arm_user_ss.add(when: 'TARGET_AARCH64', if_false: files('cpu-v7m.c'))
+arm_common_ss.add(zlib)
+
arm_common_ss.add(files(
'arith_helper.c',
'crypto_helper.c',