From e4c46c2c5f7a73db5049d4d581104e8f79ff2d0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 5 May 2025 20:38:18 +0200 Subject: [PATCH] iOS: Only set LD_ENTRY_POINT for qmake projects if entrypoint is enabled Fixes: QTBUG-136609 Pick-to: 6.8 Change-Id: I48360b201299faeb854d76cc98fa21f5b758bd55 Reviewed-by: Alexey Edelev (cherry picked from commit cb65dc8f934c02a3fc17074518ba90191bed1c73) Reviewed-by: Qt Cherry-pick Bot --- mkspecs/features/uikit/default_post.prf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mkspecs/features/uikit/default_post.prf b/mkspecs/features/uikit/default_post.prf index d330d3cdeae..755106e2c66 100644 --- a/mkspecs/features/uikit/default_post.prf +++ b/mkspecs/features/uikit/default_post.prf @@ -48,11 +48,13 @@ macx-xcode { QMAKE_MAC_XCODE_SETTINGS += supported_platforms } - # Override the entry point explicitly, in case a Swift file is - # added to the Xcode project - ld_entry_point.name = LD_ENTRY_POINT - ld_entry_point.value = _qt_main_wrapper - QMAKE_MAC_XCODE_SETTINGS += ld_entry_point + entrypoint { + # Override the entry point explicitly, in case a Swift file is + # added to the Xcode project + ld_entry_point.name = LD_ENTRY_POINT + ld_entry_point.value = _qt_main_wrapper + QMAKE_MAC_XCODE_SETTINGS += ld_entry_point + } # In a simulator specific build the device config will set the SDK # to the simulator SDK, but for Xcode we always want the SDKROOT