parameters: (environ_cp)
docstring: Set HOST_CXX_COMPILER.
docstring_summary: Set HOST_CXX_COMPILER.
docstring_tokens: Set HOST_CXX_COMPILER .
function: def set_host_cxx_compiler(environ_cp):
    """Set HOST_CXX_COMPILER."""
    default_cxx_host_compiler = which('g++') or ''
  
    host_cxx_compiler = prompt_loop_or_load_from_env(
        environ_cp,
        var_name='HOST_CXX_COMPILER',
        var_default=default_cxx_host_compiler,
        ask_for_var=('Please specify which C++ compiler should be used as the '
                     'host C++ compiler.'),
        check_success=os.path.exists,
        error_msg='Invalid C++ compiler path. %s cannot be found.',
    )
  
    write_action_env_to_bazelrc('HOST_CXX_COMPILER', host_cxx_compiler)
function_tokens: def set_host_cxx_compiler ( environ_cp ) : default_cxx_host_compiler = which ( 'g++' ) or '' host_cxx_compiler = prompt_loop_or_load_from_env ( environ_cp , var_name = 'HOST_CXX_COMPILER' , var_default = default_cxx_host_compiler , ask_for_var = ( 'Please specify which C++ compiler should be used as the ' 'host C++ compiler.' ) , check_success = os . path . exists , error_msg = 'Invalid C++ compiler path. %s cannot be found.' , ) write_action_env_to_bazelrc ( 'HOST_CXX_COMPILER' , host_cxx_compiler )