Skip to content

Commit b340b21

Browse files
authored
Fix lowercase_sdk not redefined in runtime CMake
1 parent a9bb59f commit b340b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,10 @@ foreach(sdk ${SWIFT_CONFIGURED_SDKS})
322322
add_dependencies(stdlib swift-stdlib-${arch_suffix} swiftImageRegistration-${arch_suffix})
323323
endif()
324324

325+
string(TOLOWER "${sdk}" lowercase_sdk)
325326
# Generate the static-stdlib-args.lnk file used by -static-stdlib option for
326327
# 'GenericUnix' (eg linux)
327328
if(${SWIFT_SDK_${sdk}_OBJECT_FORMAT} STREQUAL ELF)
328-
string(TOLOWER "${sdk}" lowercase_sdk)
329329
if(SWIFT_${SWIFT_HOST_VARIANT_SDK}_${SWIFT_HOST_VARIANT_ARCH}_ICU_STATICLIB)
330330
set(ICU_STATICLIB "TRUE")
331331
else()

0 commit comments

Comments
 (0)