Don't force lld for Android when clang is used
This reverts commit 64c111e10f
.
The claim of the commit message, that we cannot use the gold linker,
does not seem to be true (anymore?). This is underlined by the fact
that CMake *forces* the gold linker for Android, whenever LTCG is
enabled (see Modules/Compiler/Clang.cmake as of CMake 3.21.1).
Change-Id: I90edac8555be4abdd44cd367228aeffb0d66b895
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
parent
1caa7680a1
commit
6e48d654d7
@ -131,15 +131,6 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND CMAKE_SYSTEM_NAME STREQUAL "
|
||||
target_compile_options(PlatformCommonInternal INTERFACE -Wno-ignored-attributes)
|
||||
endif()
|
||||
|
||||
# We can't use the gold linker on android with the NDK, which is the default
|
||||
# linker. To build our own target we will use the lld linker.
|
||||
# TODO: Why not?
|
||||
# Linking Android libs with lld on Windows sometimes deadlocks. Don't use lld on
|
||||
# Windows. qmake doesn't use lld to build Android on any host platform.
|
||||
if (ANDROID AND NOT CMAKE_HOST_WIN32)
|
||||
target_link_options(PlatformModuleInternal INTERFACE -fuse-ld=lld)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(PlatformCommonInternal INTERFACE $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG>)
|
||||
|
||||
function(qt_internal_apply_bitcode_flags target)
|
||||
|
Loading…
Reference in New Issue
Block a user