File tree Expand file tree Collapse file tree 7 files changed +8
-15
lines changed Expand file tree Collapse file tree 7 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,8 @@ elseif(BOOTSTRAPPING_MODE STREQUAL "OFF")
164
164
endif ()
165
165
166
166
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB )
167
+ add_custom_target (embedded-libraries ALL )
168
+
167
169
set (EMBEDDED_STDLIB_TARGET_TRIPLES )
168
170
if ("ARM" IN_LIST LLVM_TARGETS_TO_BUILD )
169
171
list (APPEND EMBEDDED_STDLIB_TARGET_TRIPLES
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ elseif(BOOTSTRAPPING_MODE STREQUAL "OFF")
191
191
endif ()
192
192
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB AND SWIFT_SHOULD_BUILD_EMBEDDED_CONCURRENCY )
193
193
add_custom_target (embedded-concurrency ALL )
194
+ add_dependencies (embedded-libraries embedded-concurrency )
194
195
195
196
set (SWIFT_ENABLE_REFLECTION OFF )
196
197
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 @@ -49,6 +49,7 @@ add_swift_target_library(swiftSynchronization ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES
49
49
# and only users of a library are going to actually compile any needed code.
50
50
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB )
51
51
add_custom_target (embedded-synchronization ALL )
52
+ add_dependencies (embedded-libraries embedded-synchronization )
52
53
53
54
foreach (entry ${EMBEDDED_STDLIB_TARGET_TRIPLES} )
54
55
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 @@ -415,6 +415,7 @@ add_swift_target_library(swiftCore
415
415
# and only users of a library are going to actually compile any needed code.
416
416
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB )
417
417
add_custom_target (embedded-stdlib ALL )
418
+ add_dependencies (embedded-libraries embedded-stdlib )
418
419
419
420
set (SWIFT_ENABLE_REFLECTION OFF )
420
421
set (SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT OFF )
Original file line number Diff line number Diff line change @@ -318,21 +318,7 @@ foreach(SDK ${SWIFT_SDKS})
318
318
endif ()
319
319
320
320
if (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB )
321
- if (TARGET "embedded-stdlib" )
322
- list (APPEND test_dependencies "embedded-stdlib" )
323
- endif ()
324
- if (TARGET "embedded-darwin" )
325
- list (APPEND test_dependencies "embedded-darwin" )
326
- endif ()
327
- if (TARGET "embedded-concurrency" )
328
- list (APPEND test_dependencies "embedded-concurrency" )
329
- endif ()
330
- if (TARGET "embedded-synchronization" )
331
- list (APPEND test_dependencies "embedded-synchronization" )
332
- endif ()
333
- if (TARGET "embedded-volatile" )
334
- list (APPEND test_dependencies "embedded-volatile" )
335
- endif ()
321
+ list (APPEND test_dependencies "embedded-libraries" )
336
322
endif ()
337
323
338
324
if (NOT "${COVERAGE_DB} " STREQUAL "" )
You can’t perform that action at this time.
0 commit comments