Skip to content

Commit 648e937

Browse files
committed
Remove trailing whitespace in build-script.py
1 parent ce8fd14 commit 648e937

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

build-script.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def escapeCmdArg(arg):
4949
return arg
5050

5151

52-
def call(cmd, env=os.environ, stdout=None, stderr=subprocess.STDOUT,
52+
def call(cmd, env=os.environ, stdout=None, stderr=subprocess.STDOUT,
5353
verbose=False):
5454
if verbose:
5555
print(' '.join([escapeCmdArg(arg) for arg in cmd]))
@@ -78,9 +78,9 @@ def realpath(path):
7878
def check_gyb_exec():
7979
if not os.path.exists(GYB_EXEC):
8080
fatal_error('''
81-
Error: Could not find gyb.
81+
Error: Could not find gyb.
8282
83-
Make sure you have the main swift repo checked out next to the swift-syntax
83+
Make sure you have the main swift repo checked out next to the swift-syntax
8484
repository.
8585
Refer to README.md for more information.
8686
''')
@@ -110,10 +110,10 @@ def generate_gyb_files(verbose, add_source_locations):
110110
# Clear any *.swift files that are relics from the previous run.
111111
for previous_gyb_gen_file in os.listdir(generated_files_dir):
112112
if previous_gyb_gen_file.endswith('.swift'):
113-
gyb_file = os.path.join(swiftsyntax_sources_dir,
113+
gyb_file = os.path.join(swiftsyntax_sources_dir,
114114
previous_gyb_gen_file + '.gyb')
115115
if not os.path.exists(gyb_file):
116-
check_call(['rm', previous_gyb_gen_file], cwd=generated_files_dir,
116+
check_call(['rm', previous_gyb_gen_file], cwd=generated_files_dir,
117117
verbose=verbose)
118118

119119
# Generate the new .swift files in a temporary directory and only copy them
@@ -140,7 +140,7 @@ def generate_gyb_files(verbose, add_source_locations):
140140
line_directive_flags,
141141
verbose=verbose)
142142

143-
# Copy the file if different from the file already present in
143+
# Copy the file if different from the file already present in
144144
# gyb_generated
145145
check_call(['rsync'] +
146146
['--checksum'] +
@@ -257,20 +257,20 @@ def run_tests(swift_test_exec, build_dir, parser_header_dir, parser_lib_dir,
257257
def check_lit_exec():
258258
if not os.path.exists(LIT_EXEC):
259259
fatal_error('''
260-
Error: Could not find lit.py.
260+
Error: Could not find lit.py.
261261
262-
Make sure you have the llvm repo checked out next to the swift-syntax repo.
262+
Make sure you have the llvm repo checked out next to the swift-syntax repo.
263263
Refer to README.md for more information.
264264
''')
265265

266266

267267
def check_incr_transfer_roundtrip_exec():
268268
if not os.path.exists(INCR_TRANSFER_ROUNDTRIP_EXEC):
269269
fatal_error('''
270-
Error: Could not find incr_transfer_round_trip.py.
270+
Error: Could not find incr_transfer_round_trip.py.
271271
272-
Make sure you have the main swift repo checked out next to the swift-syntax
273-
repo.
272+
Make sure you have the main swift repo checked out next to the swift-syntax
273+
repo.
274274
Refer to README.md for more information.
275275
''')
276276

@@ -305,7 +305,7 @@ def run_lit_tests(swift_build_exec, build_dir, parser_header_dir, parser_lib_dir
305305

306306
lit_call = [LIT_EXEC]
307307
lit_call.extend([PACKAGE_DIR + '/lit_tests'])
308-
308+
309309
if swiftc_exec:
310310
lit_call.extend(['--param', 'SWIFTC=' + realpath(swiftc_exec)])
311311
if filecheck_exec:
@@ -444,8 +444,8 @@ def main():
444444
basic_group.add_argument('--swiftmodule-base-name',
445445
help='''
446446
The name under which the Swift module should be installed. A .swiftdoc and
447-
.swiftmodule file extension will be added to this path and the
448-
corresponding files will be copied there.
447+
.swiftmodule file extension will be added to this path and the
448+
corresponding files will be copied there.
449449
Example /path/to/SwiftSyntax.swiftmodule/x86_64 copies files to
450450
/path/to/SwiftSyntax.swiftmodule/x86_64.swiftmodule and
451451
/path/to/SwiftSyntax.swiftmodule/x86_64.swiftdoc
@@ -465,7 +465,7 @@ def main():
465465
testing_group = parser.add_argument_group('Testing')
466466
testing_group.add_argument('-t', '--test', action='store_true',
467467
help='Run tests')
468-
468+
469469
testing_group.add_argument('--swift-build-exec', default='swift build',
470470
help='''
471471
Path to the swift-build executable that is used to build SwiftPM projects

0 commit comments

Comments
 (0)