File tree 8 files changed +18
-22
lines changed
8 files changed +18
-22
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ elseif(BOOTSTRAPPING_MODE STREQUAL "OFF")
167
167
set (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB FALSE )
168
168
endif ()
169
169
170
+ if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
171
+ add_custom_target (embedded-libraries ALL )
172
+ endif ()
173
+
170
174
set (EMBEDDED_STDLIB_TARGET_TRIPLES)
171
175
172
176
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB_CROSS_COMPILING)
Original file line number Diff line number Diff line change @@ -186,7 +186,8 @@ elseif(BOOTSTRAPPING_MODE STREQUAL "OFF")
186
186
set (SWIFT_SHOULD_BUILD_EMBEDDED_CONCURRENCY FALSE )
187
187
endif ()
188
188
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB AND SWIFT_SHOULD_BUILD_EMBEDDED_CONCURRENCY)
189
- add_custom_target (embedded-concurrency ALL )
189
+ add_custom_target (embedded-concurrency)
190
+ add_dependencies (embedded-libraries embedded-concurrency)
190
191
191
192
set (SWIFT_ENABLE_REFLECTION OFF )
192
193
set (SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT OFF )
Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ add_swift_target_library(swiftDarwin ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES}
81
81
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
82
82
set (SWIFT_ENABLE_REFLECTION OFF )
83
83
84
- add_custom_target (embedded-darwin ALL )
84
+ add_custom_target (embedded-darwin)
85
+ add_dependencies (embedded-libraries embedded-darwin)
85
86
foreach (entry ${EMBEDDED_STDLIB_TARGET_TRIPLES} )
86
87
string (REGEX REPLACE "[ \t ]+" ";" list "${entry} " )
87
88
list (GET list 0 arch)
Original file line number Diff line number Diff line change @@ -134,7 +134,8 @@ add_swift_target_library(swiftSynchronization ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES
134
134
# i.e. there is no .o or .a file produced (no binary code is actually produced)
135
135
# and only users of a library are going to actually compile any needed code.
136
136
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
137
- add_custom_target (embedded-synchronization ALL )
137
+ add_custom_target (embedded-synchronization)
138
+ add_dependencies (embedded-libraries embedded-synchronization)
138
139
139
140
foreach (entry ${EMBEDDED_STDLIB_TARGET_TRIPLES} )
140
141
string (REGEX REPLACE "[ \t ]+" ";" list "${entry} " )
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ add_swift_target_library(swift_Volatile ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_S
22
22
)
23
23
24
24
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
25
- add_custom_target (embedded-volatile ALL )
25
+ add_custom_target (embedded-volatile)
26
+ add_dependencies (embedded-libraries embedded-volatile)
26
27
foreach (entry ${EMBEDDED_STDLIB_TARGET_TRIPLES} )
27
28
string (REGEX REPLACE "[ \t ]+" ";" list "${entry} " )
28
29
list (GET list 0 arch)
Original file line number Diff line number Diff line change @@ -413,7 +413,8 @@ add_swift_target_library(swiftCore
413
413
# i.e. there is no .o or .a file produced (no binary code is actually produced)
414
414
# and only users of a library are going to actually compile any needed code.
415
415
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
416
- add_custom_target (embedded-stdlib ALL )
416
+ add_custom_target (embedded-stdlib)
417
+ add_dependencies (embedded-libraries embedded-stdlib)
417
418
418
419
set (SWIFT_ENABLE_REFLECTION OFF )
419
420
set (SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT OFF )
Original file line number Diff line number Diff line change 1
1
2
2
# Embedded Swift Unicode library
3
3
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
4
- add_custom_target (embedded-unicode ALL )
4
+ add_custom_target (embedded-unicode)
5
+ add_dependencies (embedded-libraries embedded-unicode)
5
6
6
7
foreach (entry ${EMBEDDED_STDLIB_TARGET_TRIPLES} )
7
8
string (REGEX REPLACE "[ \t ]+" ";" list "${entry} " )
Original file line number Diff line number Diff line change @@ -320,22 +320,8 @@ foreach(SDK ${SWIFT_SDKS})
320
320
endif ()
321
321
endif ()
322
322
323
- if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
324
- if (TARGET "embedded-stdlib" )
325
- list (APPEND test_dependencies "embedded-stdlib" )
326
- endif ()
327
- if (TARGET "embedded-darwin" )
328
- list (APPEND test_dependencies "embedded-darwin" )
329
- endif ()
330
- if (TARGET "embedded-concurrency" )
331
- list (APPEND test_dependencies "embedded-concurrency" )
332
- endif ()
333
- if (TARGET "embedded-synchronization" )
334
- list (APPEND test_dependencies "embedded-synchronization" )
335
- endif ()
336
- if (TARGET "embedded-volatile" )
337
- list (APPEND test_dependencies "embedded-volatile" )
338
- endif ()
323
+ if (TARGET "embedded-libraries" )
324
+ list (APPEND test_dependencies "embedded-libraries" )
339
325
endif ()
340
326
341
327
if (NOT "${COVERAGE_DB} " STREQUAL "" )
You can’t perform that action at this time.
0 commit comments