File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -833,6 +833,11 @@ function(add_swift_target_library_single target name)
833
833
-libc;${SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY} )
834
834
endif ()
835
835
836
+ # Define availability macros.
837
+ foreach (def ${SWIFT_STDLIB_AVAILABILITY_DEFINITIONS} )
838
+ list (APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS "-Xfrontend" "-define-availability" "-Xfrontend" "${def} " )
839
+ endforeach ()
840
+
836
841
# Don't install the Swift module content for back-deployment libraries.
837
842
if (SWIFTLIB_SINGLE_BACK_DEPLOYMENT_LIBRARY )
838
843
set (install_in_component "never_install" )
@@ -1712,11 +1717,6 @@ function(add_swift_target_library name)
1712
1717
"Either SHARED, STATIC, or OBJECT_LIBRARY must be specified" )
1713
1718
endif ()
1714
1719
1715
- # Define availability macros.
1716
- foreach (def ${SWIFT_STDLIB_AVAILABILITY_DEFINITIONS} )
1717
- list (APPEND SWIFTLIB_SWIFT_COMPILE_FLAGS "-Xfrontend" "-define-availability" "-Xfrontend" "${def} " )
1718
- endforeach ()
1719
-
1720
1720
# In the standard library and overlays, warn about implicit overrides
1721
1721
# as a reminder to consider when inherited protocols need different
1722
1722
# behavior for their requirements.
You can’t perform that action at this time.
0 commit comments