From a0484f629c0eda12def8bdcab5ac4aa12bfd39d1 Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: Fri, 11 Apr 2025 19:46:30 +0800 Subject: [PATCH] core: don't export unnecessary symbol in static build User binary has this export when Qt is build statically, we should only export it in shared Qt builds. Change-Id: Iaa08e2a668bee6f094a49f20a0033c5eecdc1cbc Reviewed-by: Thiago Macieira --- src/corelib/global/qfloat16.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/global/qfloat16.cpp b/src/corelib/global/qfloat16.cpp index 86c96324f92..bab3122b96f 100644 --- a/src/corelib/global/qfloat16.cpp +++ b/src/corelib/global/qfloat16.cpp @@ -13,7 +13,7 @@ QT_BEGIN_NAMESPACE #if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) -Q_DECL_EXPORT int qRegisterNormalizedMetaType_qfloat16(const QByteArray &) +Q_CORE_EXPORT int qRegisterNormalizedMetaType_qfloat16(const QByteArray &) { return QMetaType::Float16; }