@@ -40,7 +40,6 @@ def __init__(self, bazel, override_bazel_version, override_xcode_version, bazel_
4040 self .additional_args = None
4141 self .build_number = None
4242 self .configuration_args = None
43- self .configuration_path = None
4443 self .split_submodules = False
4544 self .custom_target = None
4645 self .continue_on_error = False
@@ -68,7 +67,7 @@ def __init__(self, bazel, override_bazel_version, override_xcode_version, bazel_
6867 '--verbose_failures' ,
6968
7069 # Asynchronously upload cache artifacts
71- '--experimental_remote_cache_async ' ,
70+ '--remote_cache_async ' ,
7271 ]
7372
7473 self .common_build_args = [
@@ -89,12 +88,6 @@ def __init__(self, bazel, override_bazel_version, override_xcode_version, bazel_
8988 # invoking a smaller number of frontend processes and passing them batches of
9089 # source files.
9190 '--features=swift.enable_batch_mode' ,
92-
93- # https://docs.bazel.build/versions/master/command-line-reference.html
94- # Set the number of parallel jobs per module to saturate the available CPU resources.
95- #'--swiftcopt=-j{}'.format(os.cpu_count() - 1),
96- '--@build_bazel_rules_swift//swift:copt="-j{}"' .format (os .cpu_count () - 1 ),
97- '--@build_bazel_rules_swift//swift:copt="-whole-module-optimization"' ,
9891 ]
9992
10093 self .common_release_args = [
@@ -147,9 +140,6 @@ def set_enable_sandbox(self, enable_sandbox):
147140 def set_split_swiftmodules (self , value ):
148141 self .split_submodules = value
149142
150- def set_configuration_path (self , path ):
151- self .configuration_path = path
152-
153143 def set_disable_provisioning_profiles (self ):
154144 self .disable_provisioning_profiles = True
155145
@@ -203,8 +193,6 @@ def set_configuration(self, configuration):
203193
204194 # Require DSYM files as build output.
205195 '--output_groups=+dsyms' ,
206-
207- #'--@build_bazel_rules_swift//swift:copt="-num-threads 0"',
208196 ] + self .common_release_args
209197 else :
210198 raise Exception ('Unknown configuration {}' .format (configuration ))
@@ -296,13 +284,6 @@ def invoke_build(self):
296284 if self .disable_provisioning_profiles :
297285 combined_arguments += ['--//Telegram:disableProvisioningProfiles' ]
298286
299- if self .configuration_path is None :
300- raise Exception ('configuration_path is not defined' )
301-
302- combined_arguments += [
303- '--override_repository=build_configuration={}' .format (self .configuration_path )
304- ]
305-
306287 combined_arguments += self .common_args
307288 combined_arguments += self .common_build_args
308289 combined_arguments += self .get_define_arguments ()
@@ -336,13 +317,6 @@ def invoke_test(self):
336317
337318 combined_arguments += ['Tests/AllTests' ]
338319
339- if self .configuration_path is None :
340- raise Exception ('configuration_path is not defined' )
341-
342- combined_arguments += [
343- '--override_repository=build_configuration={}' .format (self .configuration_path )
344- ]
345-
346320 combined_arguments += self .common_args
347321 combined_arguments += self .common_build_args
348322 combined_arguments += self .get_define_arguments ()
@@ -371,13 +345,6 @@ def invoke_query(self, query_args):
371345 combined_arguments += self .get_startup_bazel_arguments ()
372346 combined_arguments += ['aquery' ]
373347
374- if self .configuration_path is None :
375- raise Exception ('configuration_path is not defined' )
376-
377- combined_arguments += [
378- '--override_repository=build_configuration={}' .format (self .configuration_path )
379- ]
380-
381348 combined_arguments += [
382349 '-c' , 'dbg' ,
383350 '--ios_multi_cpus=sim_arm64' ,
@@ -425,13 +392,6 @@ def get_spm_aspect_invocation(self):
425392 if self .disable_provisioning_profiles :
426393 combined_arguments += ['--//Telegram:disableProvisioningProfiles' ]
427394
428- if self .configuration_path is None :
429- raise Exception ('configuration_path is not defined' )
430-
431- combined_arguments += [
432- '--override_repository=build_configuration={}' .format (self .configuration_path )
433- ]
434-
435395 combined_arguments += self .common_args
436396 combined_arguments += self .common_build_args
437397 combined_arguments += self .get_define_arguments ()
@@ -562,9 +522,6 @@ def resolve_configuration(base_path, bazel_command_line: BazelCommandLine, argum
562522 file .write (' "{}",\n ' .format (file_name ))
563523 file .write ('])\n ' )
564524
565- if bazel_command_line is not None :
566- bazel_command_line .set_configuration_path (configuration_repository_path )
567-
568525
569526def generate_project (bazel , arguments ):
570527 bazel_command_line = BazelCommandLine (
@@ -617,7 +574,6 @@ def generate_project(bazel, arguments):
617574 disable_provisioning_profiles = disable_provisioning_profiles ,
618575 include_release = project_include_release ,
619576 generate_dsym = generate_dsym ,
620- configuration_path = bazel_command_line .configuration_path ,
621577 bazel_app_arguments = bazel_command_line .get_project_generation_arguments (),
622578 target_name = target_name
623579 )
@@ -1006,14 +962,10 @@ def add_project_and_build_common_arguments(current_parser: argparse.ArgumentPars
1006962 buildParser .add_argument (
1007963 '--configuration' ,
1008964 choices = [
1009- 'debug_universal' ,
1010965 'debug_arm64' ,
1011- 'debug_armv7' ,
1012966 'debug_sim_arm64' ,
1013967 'release_sim_arm64' ,
1014968 'release_arm64' ,
1015- 'release_armv7' ,
1016- 'release_universal'
1017969 ],
1018970 required = True ,
1019971 help = 'Build configuration'
@@ -1254,14 +1206,10 @@ def add_project_and_build_common_arguments(current_parser: argparse.ArgumentPars
12541206 spm_parser .add_argument (
12551207 '--configuration' ,
12561208 choices = [
1257- 'debug_universal' ,
12581209 'debug_arm64' ,
1259- 'debug_armv7' ,
12601210 'debug_sim_arm64' ,
12611211 'release_sim_arm64' ,
12621212 'release_arm64' ,
1263- 'release_armv7' ,
1264- 'release_universal'
12651213 ],
12661214 required = True ,
12671215 help = 'Build configuration'
0 commit comments