From db0a93c9c29789a4e1385b19964315a26bb7ece4 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 15 Jul 2021 13:01:55 +0200 Subject: [PATCH] CMake: Fix bitcode linker flags not to be added on iOS We shouldn't force add the bitcode linker flags to user projects. And we don't link anything when building Qt for iOS itself, we only archive object files into static libraries. The final decision whether bitcode should be used is up to the Xcode project. That is controlled by Xcode's ENABLE_BITCODE option. Bitcode compile flags are still added when building Qt itself. Amends a0468331761b497992e9d554c210583781308272 Task-number: QTBUG-95199 Change-Id: I04c77f659b82269bb8010ea262b2e51f36e9def3 Reviewed-by: Qt CI Bot Reviewed-by: Joerg Bornemann (cherry picked from commit 616c32be04b8cee16354283d22dfe5cef890d435) Reviewed-by: Qt Cherry-pick Bot --- cmake/QtInternalTargets.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index 9cbb2a8bd53..5f1d146dc85 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -152,7 +152,6 @@ function(qt_internal_apply_bitcode_flags target) set(bitcode_flags "$<${is_enabled_genex}:${flags_genex}>") - target_link_options("${target}" INTERFACE ${bitcode_flags}) target_compile_options("${target}" INTERFACE ${bitcode_flags}) endfunction()