File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1031,7 +1031,7 @@ function(add_swift_library name)
1031
1031
1032
1032
# All Swift code depends on the standard library, except for the standard
1033
1033
# library itself.
1034
- if (SWIFTLIB_TARGET_LIBRARY AND SWIFTLIB_HAS_SWIFT_CONTENT AND NOT SWIFTLIB_IS_STDLIB_CORE )
1034
+ if (SWIFTLIB_HAS_SWIFT_CONTENT AND NOT SWIFTLIB_IS_STDLIB_CORE )
1035
1035
list (APPEND SWIFTLIB_SWIFT_MODULE_DEPENDS Core )
1036
1036
endif ()
1037
1037
@@ -1041,11 +1041,11 @@ function(add_swift_library name)
1041
1041
Core )
1042
1042
endif ()
1043
1043
1044
- is_build_type_optimized ("${SWIFT_STDLIB_BUILD_TYPE} " optimized )
1045
- if (NOT optimized )
1044
+ if (SWIFTLIB_HAS_SWIFT_CONTENT AND NOT SWIFTLIB_IS_STDLIB_CORE )
1046
1045
# All Swift code depends on the SwiftOnoneSupport in non-optimized mode,
1047
1046
# except for the standard library itself.
1048
- if (SWIFTLIB_TARGET_LIBRARY AND NOT SWIFTLIB_IS_STDLIB_CORE )
1047
+ is_build_type_optimized ("${SWIFT_STDLIB_BUILD_TYPE} " optimized )
1048
+ if (NOT optimized )
1049
1049
list (APPEND SWIFTLIB_SWIFT_MODULE_DEPENDS SwiftOnoneSupport )
1050
1050
endif ()
1051
1051
endif ()
You can’t perform that action at this time.
0 commit comments