@@ -27,12 +27,6 @@ function(add_dependencies_multiple_targets)
27
27
endif ()
28
28
endfunction ()
29
29
30
- function (_require_empty_list the_list the_message )
31
- if (the_list )
32
- message (FATAL_ERROR "${the_message} " )
33
- endif ()
34
- endfunction ()
35
-
36
30
# Compute the library subdirectory to use for the given sdk and
37
31
# architecture, placing the result in 'result_var_name'.
38
32
function (compute_library_subdir result_var_name sdk arch )
@@ -976,7 +970,7 @@ function(_add_swift_library_single target name)
976
970
if ("${libkind} " STREQUAL "SHARED" )
977
971
target_link_libraries ("${target} " PRIVATE ${SWIFTLIB_SINGLE_LINK_LIBRARIES} )
978
972
elseif ("${libkind} " STREQUAL "OBJECT" )
979
- _require_empty_list (
973
+ precondition_list_empty (
980
974
"${SWIFTLIB_SINGLE_LINK_LIBRARIES} "
981
975
"OBJECT_LIBRARY may not link to anything" )
982
976
else ()
@@ -1153,15 +1147,15 @@ function(_add_swift_library_single target name)
1153
1147
endif ()
1154
1148
1155
1149
if ("${libkind} " STREQUAL "OBJECT" )
1156
- _require_empty_list (
1150
+ precondition_list_empty (
1157
1151
"${SWIFTLIB_SINGLE_PRIVATE_LINK_LIBRARIES} "
1158
1152
"OBJECT_LIBRARY may not link to anything" )
1159
1153
else ()
1160
1154
target_link_libraries ("${target} " PRIVATE
1161
1155
${SWIFTLIB_SINGLE_PRIVATE_LINK_LIBRARIES} )
1162
1156
endif ()
1163
1157
if ("${libkind} " STREQUAL "OBJECT" )
1164
- _require_empty_list (
1158
+ precondition_list_empty (
1165
1159
"${SWIFTLIB_SINGLE_INTERFACE_LINK_LIBRARIES} "
1166
1160
"OBJECT_LIBRARY may not link to anything" )
1167
1161
else ()
0 commit comments