File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,11 @@ def _register_static_library_link_action(
58
58
)
59
59
args = actions .args ()
60
60
args .add_all (command_line )
61
- args .add_all (objects )
61
+ args .add ("-filelist" )
62
+ objects_args = actions .args ()
63
+ objects_args .set_param_file_format ("multiline" )
64
+ objects_args .use_param_file ("%s" , use_always = True )
65
+ objects_args .add_all (objects )
62
66
63
67
env = cc_common .get_environment_variables (
64
68
action_name = CPP_LINK_STATIC_LIBRARY_ACTION_NAME ,
@@ -68,7 +72,7 @@ def _register_static_library_link_action(
68
72
69
73
actions .run (
70
74
executable = archiver_path ,
71
- arguments = [args ],
75
+ arguments = [args , objects_args ],
72
76
env = env ,
73
77
# TODO(allevato): It seems like the `cc_common` APIs should have a way to get this value
74
78
# so that it can be handled consistently for the toolchain in use.
You can’t perform that action at this time.
0 commit comments