File tree Expand file tree Collapse file tree 7 files changed +10
-15
lines changed Expand file tree Collapse file tree 7 files changed +10
-15
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 @@ -192,6 +192,7 @@ elseif(BOOTSTRAPPING_MODE STREQUAL "OFF")
192
192
endif ()
193
193
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB AND SWIFT_SHOULD_BUILD_EMBEDDED_CONCURRENCY )
194
194
add_custom_target (embedded-concurrency ALL )
195
+ add_dependencies (embedded-libraries embedded-concurrency )
195
196
196
197
set (SWIFT_ENABLE_REFLECTION OFF )
197
198
set (SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT OFF )
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
82
82
set (SWIFT_ENABLE_REFLECTION OFF )
83
83
84
84
add_custom_target (embedded-darwin ALL )
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 @@ -135,6 +135,7 @@ add_swift_target_library(swiftSynchronization ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES
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
137
add_custom_target (embedded-synchronization ALL )
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 @@ -23,6 +23,7 @@ add_swift_target_library(swift_Volatile ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_S
23
23
24
24
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB )
25
25
add_custom_target (embedded-volatile ALL )
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 @@ -414,6 +414,7 @@ add_swift_target_library(swiftCore
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
416
add_custom_target (embedded-stdlib ALL )
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 @@ -319,21 +319,7 @@ foreach(SDK ${SWIFT_SDKS})
319
319
endif ()
320
320
321
321
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB )
322
- if (TARGET "embedded-stdlib" )
323
- list (APPEND test_dependencies "embedded-stdlib" )
324
- endif ()
325
- if (TARGET "embedded-darwin" )
326
- list (APPEND test_dependencies "embedded-darwin" )
327
- endif ()
328
- if (TARGET "embedded-concurrency" )
329
- list (APPEND test_dependencies "embedded-concurrency" )
330
- endif ()
331
- if (TARGET "embedded-synchronization" )
332
- list (APPEND test_dependencies "embedded-synchronization" )
333
- endif ()
334
- if (TARGET "embedded-volatile" )
335
- list (APPEND test_dependencies "embedded-volatile" )
336
- endif ()
322
+ list (APPEND test_dependencies "embedded-libraries" )
337
323
endif ()
338
324
339
325
if (NOT "${COVERAGE_DB} " STREQUAL "" )
You can’t perform that action at this time.
0 commit comments