diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-07-15 13:41:15 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-07-16 09:52:26 +0200 |
commit | e0a010129059634ce6e63199081b2e2d401a4e96 (patch) | |
tree | 78cd3ed58f19881c42b054e8ac76b911e9a325d6 /cmake/QtPluginHelpers.cmake | |
parent | 3595613a0a285120b1c475e7c350a0de871e89aa (diff) |
CMake: Apply bitcode flags to internal plugin object lib initializers
All internal libraries, plugins, object libraries (resources, plugin
initializers) need to be built with bitcode flags when targeting iOS.
Internal here means all libraries added by qt_internal_add_X
functions or associated with internal libraries.
We didn't do that for plugin initializers, which were added not too
long ago.
Extract the logic that links to Qt::PlatformModuleInternal into a
separate function to be used for object libraries.
Use it for resources and plugin initializers. It will also be used
in qtdeclarative for qml plugin initializers.
Pick-to: 6.2
Task-number: QTBUG-95208
Change-Id: I366996078f5e9d1c2d2797f6b81c522ee99529e3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake/QtPluginHelpers.cmake')
-rw-r--r-- | cmake/QtPluginHelpers.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtPluginHelpers.cmake b/cmake/QtPluginHelpers.cmake index 1b92a638a0..4ec7ef6009 100644 --- a/cmake/QtPluginHelpers.cmake +++ b/cmake/QtPluginHelpers.cmake @@ -329,6 +329,7 @@ function(qt_internal_add_plugin target) if(qt_module_target) __qt_internal_add_static_plugin_init_object_library("${target}" plugin_init_target) + qt_internal_link_internal_platform_for_object_library("${plugin_init_target}") endif() endif() |