File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ precondition(SWIFT_DEST_ROOT)
58
58
precondition (SWIFT_HOST_VARIANT_SDK )
59
59
precondition (TOOLCHAIN_DIR )
60
60
61
+ # Some overlays include the runtime's headers,
62
+ # and some of those headers are generated at build time.
63
+ add_subdirectory ("${SWIFT_SOURCE_DIR} /include" "swift/include" )
64
+
61
65
# Without this line, installing components is broken. This needs refactoring.
62
66
swift_configure_components ()
63
67
Original file line number Diff line number Diff line change 1
- configure_file (Config.h.in ${CMAKE_CURRENT_BINARY_DIR} /Config.h
2
- ESCAPE_QUOTES @ONLY )
1
+ if (SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY OR SWIFT_BUILD_STANDALONE_OVERLAY )
2
+ add_subdirectory (Runtime )
3
+ endif ()
3
4
4
- add_subdirectory (Option )
5
- add_subdirectory (SwiftRemoteMirror )
6
- add_subdirectory (Syntax )
5
+ if (SWIFT_BUILD_REMOTE_MIRROR )
6
+ add_subdirectory (SwiftRemoteMirror )
7
+ endif ()
8
+
9
+ if (SWIFT_INCLUDE_TOOLS )
10
+ configure_file (Config.h.in ${CMAKE_CURRENT_BINARY_DIR} /Config.h
11
+ ESCAPE_QUOTES @ONLY )
12
+ add_subdirectory (Option )
13
+ add_subdirectory (Syntax )
14
+ endif ()
You can’t perform that action at this time.
0 commit comments