File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -403,13 +403,28 @@ def register_link_binary_action(
403403 objc .static_framework_names .to_list (),
404404 ))
405405
406+ is_bazel_6 = hasattr (apple_common , "link_multi_arch_static_library" )
407+ if is_bazel_6 :
408+ additional_inputs = objc .static_framework_file
409+ else :
410+ additional_inputs = depset (
411+ transitive = [
412+ objc .static_framework_file ,
413+ objc .imported_library ,
414+ ],
415+ )
416+ dep_link_flags .extend ([
417+ lib .path
418+ for lib in objc .imported_library .to_list ()
419+ ])
420+
406421 linking_contexts .append (
407422 cc_common .create_linking_context (
408423 linker_inputs = depset ([
409424 cc_common .create_linker_input (
410425 owner = owner ,
411426 user_link_flags = dep_link_flags ,
412- additional_inputs = objc . static_framework_file ,
427+ additional_inputs = additional_inputs ,
413428 ),
414429 ]),
415430 ),
You can’t perform that action at this time.
0 commit comments