File tree 1 file changed +6
-3
lines changed
src/main/starlark/builtins_bzl/common/cc
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -173,16 +173,19 @@ def _should_generate_def_file(ctx, feature_configuration):
173
173
174
174
def _generate_def_file (ctx , def_parser , object_files , dll_name ):
175
175
def_file = ctx .actions .declare_file (ctx .label .name + ".gen.def" )
176
+ args = ctx .actions .args ()
177
+ args .add (def_file )
178
+ args .add (dll_name )
176
179
argv = ctx .actions .args ()
177
- argv .add ( def_file )
178
- argv .add ( dll_name )
180
+ argv .use_param_file ( "@%s" , use_always = True )
181
+ argv .set_param_file_format ( "shell" )
179
182
for object_file in object_files :
180
183
argv .add (object_file .path )
181
184
182
185
ctx .actions .run (
183
186
mnemonic = "DefParser" ,
184
187
executable = def_parser ,
185
- arguments = [argv ],
188
+ arguments = [args , argv ],
186
189
inputs = object_files ,
187
190
outputs = [def_file ],
188
191
use_default_shell_env = True ,
You can’t perform that action at this time.
0 commit comments