Skip to content

Commit 8d8ba1e

Browse files
committed
Set stdlib source dir in non stdlib builds
Not all configurations add the stdlib directly, resulting in the `SWIFT_STDLIB_SOURCE_DIR` not getting set. In the case where we jump straight to a directory within the stdlib, skipping the actual stdlib itself, we still need this variable set.
1 parent 965a966 commit 8d8ba1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ endif()
11851185
if(SWIFT_BUILD_STDLIB)
11861186
add_subdirectory(stdlib)
11871187
else()
1188+
set(SWIFT_STDLIB_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/stdlib")
11881189
# Some of the things below depend on the threading library
11891190
add_subdirectory(stdlib/public/Threading)
11901191

0 commit comments

Comments
 (0)