We normally override the entrypoint to _qt_main_wrapper via the -e flag to the linker, but if a Swift file is added to the Xcode project, Xcode does some magic, building the app as a shared library, and wrapping it with the Swift code into a custom executable. The -e flag will then be a noop when linking our shared library. To work around this we set the custom LD_ENTRY_POINT Xcode build setting, which triggers Xcode to pass -e when linking the wrapper-executable. This works in practice, but produces a warning on the console that the entrypoint is not found, which has been reported as FB16519113. Fixes: QTBUG-133577 Change-Id: I9d8310b39ac5a4900693df55c2e5bfa346c0300a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 430ba7c0f826ee6f91fbfdc861525cb62b8e725c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 9fbb8e0090a1d8220479e776feae7c9c5bb8493e) |
||
|---|---|---|
| .. | ||
| aix-g++ | ||
| aix-g++-64 | ||
| android-clang | ||
| common | ||
| cygwin-g++ | ||
| darwin-g++ | ||
| devices | ||
| dummy | ||
| features | ||
| freebsd-clang | ||
| freebsd-g++ | ||
| haiku-g++ | ||
| hpuxi-g++-64 | ||
| hurd-g++ | ||
| integrity-armv7 | ||
| integrity-armv7-imx6 | ||
| integrity-armv8-rcar | ||
| integrity-x86 | ||
| linux-aarch64-gnu-g++ | ||
| linux-arm-gnueabi-g++ | ||
| linux-clang | ||
| linux-clang-32 | ||
| linux-clang-libc++ | ||
| linux-clang-libc++-32 | ||
| linux-g++ | ||
| linux-g++-32 | ||
| linux-g++-64 | ||
| linux-icc | ||
| linux-icc-32 | ||
| linux-icc-64 | ||
| linux-icc-k1om | ||
| linux-llvm | ||
| linux-lsb-g++ | ||
| lynxos-g++ | ||
| macx-clang | ||
| macx-g++ | ||
| macx-icc | ||
| macx-ios-clang | ||
| macx-visionos-clang | ||
| macx-xcode | ||
| modules | ||
| netbsd-g++ | ||
| openbsd-g++ | ||
| qnx-aarch64le-qcc | ||
| qnx-armle-v7-qcc | ||
| qnx-x86-64-qcc | ||
| qnx-x86-qcc | ||
| solaris-cc | ||
| solaris-cc-64 | ||
| solaris-cc-64-stlport | ||
| solaris-cc-stlport | ||
| solaris-g++ | ||
| solaris-g++-64 | ||
| unsupported | ||
| vxworks-clang | ||
| wasm-emscripten | ||
| wasm-emscripten-64 | ||
| win32-arm64-msvc | ||
| win32-clang-g++ | ||
| win32-clang-msvc | ||
| win32-g++ | ||
| win32-icc | ||
| win32-icc-k1om | ||
| win32-msvc | ||
| REUSE.toml | ||