File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,12 @@ function(add_bootstrapping_target bootstrapping)
117
117
set (target "bootstrapping${bootstrapping} -all" )
118
118
add_custom_target (${target} )
119
119
120
+ if (${LIBSWIFT_BUILD_MODE} STREQUAL "BOOTSTRAPPING" )
121
+ set (lib_target "bootstrapping${bootstrapping} -corelib" )
122
+ add_custom_target (${lib_target} )
123
+ add_dependencies (${target} ${lib_target} )
124
+ endif ()
125
+
120
126
if (SWIFT_PATH_TO_LIBICU_BUILD )
121
127
# Need to symlink the libicu libraries to be able to run
122
128
# the bootstrapping compiler with a custom library path.
Original file line number Diff line number Diff line change @@ -55,10 +55,12 @@ if(${LIBSWIFT_BUILD_MODE} STREQUAL "BOOTSTRAPPING" AND
55
55
56
56
add_swift_target_library_single (swiftDarwin-bootstrapping0 swiftDarwin
57
57
${swiftDarwin_common_bootstrapping_options}
58
+ FILE_DEPENDS bootstrapping0-corelib
58
59
BOOTSTRAPPING 0 )
59
60
60
61
add_swift_target_library_single (swiftDarwin-bootstrapping1 swiftDarwin
61
62
${swiftDarwin_common_bootstrapping_options}
63
+ FILE_DEPENDS bootstrapping1-corelib
62
64
BOOTSTRAPPING 1 )
63
65
64
66
add_dependencies (bootstrapping1-all swiftDarwin-bootstrapping1 )
Original file line number Diff line number Diff line change @@ -24,17 +24,19 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND ${LIBSWIFT_BUILD_MODE} STREQUAL "BOOTST
24
24
25
25
add_swift_target_library_single (swiftSwiftOnoneSupport-bootstrapping0 swiftSwiftOnoneSupport
26
26
${swiftOnoneSupport_common_bootstrapping_options}
27
+ FILE_DEPENDS swiftCore-bootstrapping0
27
28
BOOTSTRAPPING 0 )
28
29
29
- add_dependencies (bootstrapping0-all swiftSwiftOnoneSupport-bootstrapping0 )
30
+ add_dependencies (bootstrapping0-corelib swiftSwiftOnoneSupport-bootstrapping0 )
30
31
31
32
# Bootstrapping - stage 1
32
33
33
34
add_swift_target_library_single (swiftSwiftOnoneSupport-bootstrapping1 swiftSwiftOnoneSupport
34
35
${swiftOnoneSupport_common_bootstrapping_options}
36
+ FILE_DEPENDS swiftCore-bootstrapping1
35
37
BOOTSTRAPPING 1 )
36
38
37
- add_dependencies (bootstrapping1-all swiftSwiftOnoneSupport-bootstrapping1 )
39
+ add_dependencies (bootstrapping1-corelib swiftSwiftOnoneSupport-bootstrapping1 )
38
40
39
41
endif ()
40
42
Original file line number Diff line number Diff line change @@ -368,8 +368,8 @@ if(${LIBSWIFT_BUILD_MODE} STREQUAL "BOOTSTRAPPING")
368
368
symlink-headers-bootstrapping1 ${swiftCore_common_dependencies}
369
369
BOOTSTRAPPING 1 )
370
370
371
- add_dependencies (bootstrapping1-all swiftCore-bootstrapping1 )
372
- add_dependencies (bootstrapping0-all swiftCore-bootstrapping0 )
371
+ add_dependencies (bootstrapping1-corelib swiftCore-bootstrapping1 )
372
+ add_dependencies (bootstrapping0-corelib swiftCore-bootstrapping0 )
373
373
endif ()
374
374
375
375
add_swift_target_library (swiftCore
You can’t perform that action at this time.
0 commit comments