File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -434,6 +434,15 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
434
434
set (SWIFT_STDLIB_ENABLE_OBJC_INTEROP OFF )
435
435
set (SWIFT_STDLIB_ENABLE_VECTOR_TYPES OFF )
436
436
437
+ # Under Embedded Swift, all stdlib APIs should be available always. Replace
438
+ # all availability macros with 10.13.
439
+ set (SWIFT_STDLIB_AVAILABILITY_DEFINITIONS_EMBEDDED )
440
+ foreach (def ${SWIFT_STDLIB_AVAILABILITY_DEFINITIONS} )
441
+ string (REGEX REPLACE ":.*" ":macOS 10.13" replaced "${def} " )
442
+ list (APPEND SWIFT_STDLIB_AVAILABILITY_DEFINITIONS_EMBEDDED "${replaced} " )
443
+ endforeach ()
444
+ set (SWIFT_STDLIB_AVAILABILITY_DEFINITIONS "${SWIFT_STDLIB_AVAILABILITY_DEFINITIONS_EMBEDDED} " )
445
+
437
446
foreach (entry ${EMBEDDED_STDLIB_TARGET_TRIPLES} )
438
447
string (REGEX REPLACE "[ \t ]+" ";" list "${entry} " )
439
448
list (GET list 0 arch )
You can’t perform that action at this time.
0 commit comments