Skip to content

Commit 4ae758a

Browse files
authored
Merge pull request #269 from kimdv/kimdv/fix-missing-parameter
Add missing parameters for gyb generation
2 parents 1c7ebfa + 641d0d4 commit 4ae758a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build-script.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ def generate_gyb_files(
195195

196196
# Clear any *.swift files that are relics from the previous run.
197197
clear_gyb_files_from_previous_run(
198-
SWIFTSYNTAX_DIR, swiftsyntax_destination)
198+
SWIFTSYNTAX_DIR, swiftsyntax_destination, verbose)
199199

200200
clear_gyb_files_from_previous_run(
201-
SWIFTSYNTAXBUILDER_DIR, swiftsyntaxbuilder_destination)
201+
SWIFTSYNTAXBUILDER_DIR, swiftsyntaxbuilder_destination, verbose)
202202

203203
for previous_gyb_gen_file in os.listdir(template_destination):
204204
if previous_gyb_gen_file.endswith(".swift"):
@@ -244,7 +244,7 @@ def make_dir_if_needed(path):
244244

245245
# Remove any files in the `gyb_generated` directory that no longer have a
246246
# 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):
248248
for previous_gyb_gen_file in os.listdir(destination_dir):
249249
if previous_gyb_gen_file.endswith(".swift"):
250250
gyb_file = os.path.join(
@@ -253,7 +253,7 @@ def clear_gyb_files_from_previous_run(sources_dir, destination_dir):
253253
if not os.path.exists(gyb_file):
254254
check_call(
255255
["rm", previous_gyb_gen_file],
256-
cwd=destination,
256+
cwd=destination_dir,
257257
verbose=verbose
258258
)
259259

0 commit comments

Comments
 (0)