Skip to content

Commit 857539f

Browse files
committed
[Build] Fix minimal stdlib build.
We need the new `deployment_version` function to handle the `FREESTANDING` SDK also. rdar://155841439
1 parent 27b1a7d commit 857539f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ function(deployment_version result_var_name)
5858
set(DEPLOYMENT_VERSION ${SWIFT_ANDROID_API_LEVEL})
5959
endif()
6060

61+
if("${GETDEP_SDK}" STREQUAL "FREESTANDING")
62+
set(DEPLOYMENT_VERSION "${SWIFT_SDK_${GETDEP_SDK}_DEPLOYMENT_VERSION}")
63+
endif()
64+
6165
set("${result_var_name}" "${DEPLOYMENT_VERSION}" PARENT_SCOPE)
6266
endfunction()
6367

0 commit comments

Comments
 (0)