@@ -195,10 +195,10 @@ def generate_gyb_files(
195
195
196
196
# Clear any *.swift files that are relics from the previous run.
197
197
clear_gyb_files_from_previous_run (
198
- SWIFTSYNTAX_DIR , swiftsyntax_destination )
198
+ SWIFTSYNTAX_DIR , swiftsyntax_destination , verbose )
199
199
200
200
clear_gyb_files_from_previous_run (
201
- SWIFTSYNTAXBUILDER_DIR , swiftsyntaxbuilder_destination )
201
+ SWIFTSYNTAXBUILDER_DIR , swiftsyntaxbuilder_destination , verbose )
202
202
203
203
for previous_gyb_gen_file in os .listdir (template_destination ):
204
204
if previous_gyb_gen_file .endswith (".swift" ):
@@ -244,7 +244,7 @@ def make_dir_if_needed(path):
244
244
245
245
# Remove any files in the `gyb_generated` directory that no longer have a
246
246
# corresponding `.gyb` file in the `Sources` directory.
247
- def clear_gyb_files_from_previous_run (sources_dir , destination_dir ):
247
+ def clear_gyb_files_from_previous_run (sources_dir , destination_dir , verbose ):
248
248
for previous_gyb_gen_file in os .listdir (destination_dir ):
249
249
if previous_gyb_gen_file .endswith (".swift" ):
250
250
gyb_file = os .path .join (
@@ -253,7 +253,7 @@ def clear_gyb_files_from_previous_run(sources_dir, destination_dir):
253
253
if not os .path .exists (gyb_file ):
254
254
check_call (
255
255
["rm" , previous_gyb_gen_file ],
256
- cwd = destination ,
256
+ cwd = destination_dir ,
257
257
verbose = verbose
258
258
)
259
259
0 commit comments