Skip to content

Commit 28997eb

Browse files
authored
Merge pull request #19823 from drodriguez/remove-unused-linker-variables
Remove unused variables from Android configuration
2 parents 1eb4ec5 + 8fb8b39 commit 28997eb

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

cmake/modules/SwiftConfigureSDK.cmake

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ function(_report_sdk prefix)
6262
endif()
6363
endif()
6464
message(STATUS " Object Format: ${SWIFT_SDK_${prefix}_OBJECT_FORMAT}")
65-
foreach(arch ${SWIFT_SDK_${prefix}_ARCHITECTURES})
66-
if(SWIFT_SDK_${prefix}_ARCH_${arch}_LINKER)
67-
message(STATUS " Linker (${arch}): ${SWIFT_SDK_${prefix}_ARCH_${arch}_LINKER}")
68-
else()
69-
message(STATUS " Linker (${arch}): ${CMAKE_LINKER}")
70-
endif()
71-
endforeach()
7265

7366
foreach(arch ${SWIFT_SDK_${prefix}_ARCHITECTURES})
7467
message(STATUS
@@ -205,11 +198,6 @@ macro(configure_sdk_unix name architectures)
205198
endif()
206199
set(SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_PREBUILT_PATH
207200
"${SWIFT_ANDROID_NDK_PATH}/toolchains/${SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_TRIPLE}-${SWIFT_ANDROID_NDK_GCC_VERSION}/prebuilt/${_swift_android_prebuilt_build}")
208-
209-
# Resolve the correct linker based on the file name of CMAKE_LINKER (being 'ld' or 'ld.gold' the options)
210-
get_filename_component(SWIFT_ANDROID_LINKER_NAME "${CMAKE_LINKER}" NAME)
211-
set(SWIFT_SDK_ANDROID_ARCH_${arch}_LINKER
212-
"${SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_PREBUILT_PATH}/bin/${SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_TRIPLE}-${SWIFT_ANDROID_LINKER_NAME}")
213201
else()
214202
if(NOT SWIFT_SDK_${prefix}_ARCH_${arch}_PATH)
215203
set(SWIFT_SDK_${prefix}_ARCH_${arch}_PATH "/")

0 commit comments

Comments
 (0)