@@ -92,7 +92,7 @@ def check_rsync():
92
92
fatal_error ('Error: Could not find rsync.' )
93
93
94
94
95
- def generate_gyb_files (verbose , add_source_locations , tar_path ):
95
+ def generate_gyb_files (verbose , add_source_locations ):
96
96
print ('** Generating gyb Files **' )
97
97
98
98
check_gyb_exec ()
@@ -149,14 +149,7 @@ def generate_gyb_files(verbose, add_source_locations, tar_path):
149
149
verbose = verbose )
150
150
151
151
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
+
160
153
161
154
## Building swiftSyntax
162
155
@@ -469,10 +462,6 @@ def main():
469
462
help = 'The script only generates swift files from gyb '
470
463
'and skips the rest of the build' )
471
464
472
- build_group .add_argument ('--degyb-tar-path' ,
473
- help = 'The path to where we should tar the gyb-generated'
474
- 'files' )
475
-
476
465
testing_group = parser .add_argument_group ('Testing' )
477
466
testing_group .add_argument ('-t' , '--test' , action = 'store_true' ,
478
467
help = 'Run tests' )
@@ -533,8 +522,7 @@ def main():
533
522
534
523
try :
535
524
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 )
538
526
# Skip the rest of the build if we should perform degyb only
539
527
if args .degyb_only :
540
528
sys .exit (0 )
0 commit comments