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 @@ -829,6 +829,11 @@ function(add_swift_target_library_single target name)
829
829
-libc;${SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY} )
830
830
endif ()
831
831
832
+ # Define availability macros.
833
+ foreach (def ${SWIFT_STDLIB_AVAILABILITY_DEFINITIONS} )
834
+ list (APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS "-Xfrontend" "-define-availability" "-Xfrontend" "${def} " )
835
+ endforeach ()
836
+
832
837
# Don't install the Swift module content for back-deployment libraries.
833
838
if (SWIFTLIB_SINGLE_BACK_DEPLOYMENT_LIBRARY )
834
839
set (install_in_component "never_install" )
@@ -1708,11 +1713,6 @@ function(add_swift_target_library name)
1708
1713
"Either SHARED, STATIC, or OBJECT_LIBRARY must be specified" )
1709
1714
endif ()
1710
1715
1711
- # Define availability macros.
1712
- foreach (def ${SWIFT_STDLIB_AVAILABILITY_DEFINITIONS} )
1713
- list (APPEND SWIFTLIB_SWIFT_COMPILE_FLAGS "-Xfrontend" "-define-availability" "-Xfrontend" "${def} " )
1714
- endforeach ()
1715
-
1716
1716
# In the standard library and overlays, warn about implicit overrides
1717
1717
# as a reminder to consider when inherited protocols need different
1718
1718
# behavior for their requirements.
You can’t perform that action at this time.
0 commit comments