Skip to content

Commit 79693f3

Browse files
committed
build: remove unnecessary sets (NFC)
The default values are not referenced after the cached value is set above. The set only complicates the SDK configuration and accomplishes nothing. Remove the dead code. NFC.
1 parent 66a8461 commit 79693f3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -739,12 +739,6 @@ if(swift_build_android AND NOT "${SWIFT_ANDROID_NDK_PATH}" STREQUAL "")
739739
message(FATAL_ERROR "A Darwin or Linux host is required to build the Swift runtime for Android")
740740
endif()
741741

742-
if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND NOT swift_build_osx) OR
743-
("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND NOT swift_build_linux))
744-
set(SWIFT_PRIMARY_VARIANT_SDK_default "ANDROID")
745-
set(SWIFT_PRIMARY_VARIANT_ARCH_default "armv7")
746-
endif()
747-
748742
if("${SWIFT_SDK_ANDROID_ARCHITECTURES}" STREQUAL "")
749743
set(SWIFT_SDK_ANDROID_ARCHITECTURES armv7;aarch64)
750744
endif()

0 commit comments

Comments
 (0)