Skip to content

Commit ce8fd14

Browse files
committed
Remove build-script functionality to generate a tarball of the gyb-generated files
1 parent 4c66cf6 commit ce8fd14

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

build-script.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def check_rsync():
9292
fatal_error('Error: Could not find rsync.')
9393

9494

95-
def generate_gyb_files(verbose, add_source_locations, tar_path):
95+
def generate_gyb_files(verbose, add_source_locations):
9696
print('** Generating gyb Files **')
9797

9898
check_gyb_exec()
@@ -149,14 +149,7 @@ def generate_gyb_files(verbose, add_source_locations, tar_path):
149149
verbose=verbose)
150150

151151
print('Done Generating gyb Files')
152-
if not tar_path:
153-
return
154-
tar_command = ['tar', '-c', '-z', '-f', tar_path]
155-
for degybed_file in os.listdir(generated_files_dir):
156-
if not degybed_file.endswith('.swift'):
157-
continue
158-
tar_command.append(degybed_file)
159-
check_call(tar_command, cwd=generated_files_dir)
152+
160153

161154
## Building swiftSyntax
162155

@@ -469,10 +462,6 @@ def main():
469462
help='The script only generates swift files from gyb '
470463
'and skips the rest of the build')
471464

472-
build_group.add_argument('--degyb-tar-path',
473-
help='The path to where we should tar the gyb-generated'
474-
'files')
475-
476465
testing_group = parser.add_argument_group('Testing')
477466
testing_group.add_argument('-t', '--test', action='store_true',
478467
help='Run tests')
@@ -533,8 +522,7 @@ def main():
533522

534523
try:
535524
generate_gyb_files(verbose=args.verbose,
536-
add_source_locations=args.add_source_locations,
537-
tar_path=args.degyb_tar_path)
525+
add_source_locations=args.add_source_locations)
538526
# Skip the rest of the build if we should perform degyb only
539527
if args.degyb_only:
540528
sys.exit(0)

0 commit comments

Comments
 (0)