@@ -110,7 +110,7 @@ def add_build_cuda_with_clang_argument(parser: argparse.ArgumentParser):
110110 action = "store_true" ,
111111 help = """
112112 Should CUDA code be compiled using Clang? The default behavior is to
113- compile CUDA with NVCC. Ignored if --ci_mode is set, we always build
113+ compile CUDA with NVCC. Ignored if --use_ci_bazelrc_flags is set, we always build
114114 CUDA with NVCC in CI builds.
115115 """ ,
116116 )
@@ -203,20 +203,11 @@ def add_global_arguments(parser: argparse.ArgumentParser):
203203def add_artifact_subcommand_global_arguments (parser : argparse .ArgumentParser ):
204204 """Adds all the global arguments that applies to the artifact subcommands."""
205205 parser .add_argument (
206- "--ci_mode " ,
206+ "--use_ci_bazelrc_flags " ,
207207 action = "store_true" ,
208208 help = """
209209 When set, the CLI will assume the build is being run in CI or CI like
210- environment and will use the "ci_" configs in the .bazelrc.
211- """ ,
212- )
213-
214- parser .add_argument (
215- "--request_rbe" ,
216- action = "store_true" ,
217- help = """
218- If set, the build will try to use RBE if it is supported for the
219- platform. Requires --ci_mode to be set.
210+ environment and will use the "rbe_/ci_" configs in the .bazelrc.
220211 """ ,
221212 )
222213
@@ -261,7 +252,7 @@ def add_artifact_subcommand_global_arguments(parser: argparse.ArgumentParser):
261252 type = str ,
262253 default = "" ,
263254 help = """
264- Path to the Clang binary to use. Ignored if --ci_mode is set as we use
255+ Path to the Clang binary to use. Ignored if --use_ci_bazelrc_flags is set as we use
265256 a custom Clang toolchain in that case.
266257 """ ,
267258 )
@@ -440,16 +431,12 @@ async def main():
440431 wheel_cpus [args .target_cpu ] if args .target_cpu is not None else arch
441432 )
442433
443- # If running in CI mode , we use the "ci_"/"rbe_" configs in the .bazelrc.
434+ # If running in CI, we use the "ci_"/"rbe_" configs in the .bazelrc.
444435 # These set a custom C++ Clang toolchain and the CUDA compiler to NVCC
445- # When not running in CI mode , we detect the path to Clang binary and pass it
436+ # When not running in CI, we detect the path to Clang binary and pass it
446437 # to Bazel to use as the C++ compiler. NVCC is used as the CUDA compiler
447438 # unless the user explicitly sets --config=build_cuda_with_clang.
448- if args .ci_mode :
449- logging .debug (
450- "Running in CI mode. Run the CLI with --help for more details on what"
451- " this means."
452- )
439+ if args .use_ci_bazelrc_flags :
453440 bazelrc_config = utils .get_bazelrc_config (
454441 os_name , arch , args .command , args .request_rbe
455442 )
0 commit comments