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 <alexey.edelev@qt.io>
(cherry picked from commit cb65dc8f934c02a3fc17074518ba90191bed1c73)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2025-05-05 20:38:18 +02:00 committed by Qt Cherry-pick Bot
parent c67ba77d34
commit e4c46c2c5f

View File

@ -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