diff --git a/chrobalt/build/gn.py b/chrobalt/build/gn.py index 3d6fef783155..9d437f68b36f 100755 --- a/chrobalt/build/gn.py +++ b/chrobalt/build/gn.py @@ -92,7 +92,10 @@ def write_build_args(build_args_path, original_lines, dict_settings, f'The following args cannot be set in configs: {controlled_args}') gen_comment = '# Set by gn.py' with open(build_args_path, 'w', encoding='utf-8') as f: - f.write(f'cc_wrapper = "{CC_WRAPPER}" {gen_comment}\n') + if os.getenv("USE_RBE", default="0") == "0" : + f.write(f'cc_wrapper = "{CC_WRAPPER}" {gen_comment}\n') + else : + f.write(f'use_remoteexec = true {gen_comment}\n') f.write(f'build_type = "{build_type}" {gen_comment}\n') for key, value in _BUILD_TYPES[build_type].items(): f.write(f'{key} = {value} {gen_comment}\n')