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/QtResourceHelpers.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/QtResourceHelpers.cmake')
-rw-r--r-- | cmake/QtResourceHelpers.cmake | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cmake/QtResourceHelpers.cmake b/cmake/QtResourceHelpers.cmake index 4b7d81cc7f..092b112333 100644 --- a/cmake/QtResourceHelpers.cmake +++ b/cmake/QtResourceHelpers.cmake @@ -87,10 +87,7 @@ function(qt_internal_record_rcc_object_files target resource_targets) endif() set_property(TARGET ${target} APPEND PROPERTY _qt_rcc_objects "${rcc_object_file_path}") - # Make sure that the target cpp files are compiled with the regular Qt internal compile - # flags, needed for building iOS apps with qmake where bitcode is involved. - target_link_libraries("${out_target}" PRIVATE Qt::PlatformModuleInternal) - + qt_internal_link_internal_platform_for_object_library("${out_target}") qt_set_common_target_properties(${out_target}) endforeach() endfunction() |