summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuhang Zhao <2546789017@qq.com>2023-04-30 11:47:35 +0800
committerYuhang Zhao <yuhangzhao@deepin.org>2023-05-03 07:48:08 +0000
commit14458cc59b298e4449183e0dcc72ffc73bc2c8f8 (patch)
treecef2fd8aae1e62d072fd34588d01e1d268088d74
parent03cbcba7b2b0e42a04033a008c7fac87595e7f35 (diff)
QMake: fix build with clang-cl
We need to enable or disabled exception handling for this library explicitly when using clang-cl, otherwise clang-cl will throw an error and stop compiling. Pick-to: 6.5 Change-Id: I2b2a9e5eb009cb8ce264f2de58f8bb4fdb2339c1 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--qmake/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/qmake/CMakeLists.txt b/qmake/CMakeLists.txt
index 3ccebd9bad..35e06b4e8f 100644
--- a/qmake/CMakeLists.txt
+++ b/qmake/CMakeLists.txt
@@ -49,6 +49,8 @@ target_compile_definitions(QtLibraryInfo PUBLIC
${deprecation_define}
)
+qt_internal_set_exceptions_flags(QtLibraryInfo OFF)
+
if(NOT QT_FEATURE_qmake)
return()
endif()