MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / set_host_cxx_compiler

Function set_host_cxx_compiler

configure.py:1056–1070  ·  view source on GitHub ↗

Set HOST_CXX_COMPILER.

(environ_cp)

Source from the content-addressed store, hash-verified

1054
1055
1056def set_host_cxx_compiler(environ_cp):
1057 """Set HOST_CXX_COMPILER."""
1058 default_cxx_host_compiler = which('g++') or ''
1059
1060 host_cxx_compiler = prompt_loop_or_load_from_env(
1061 environ_cp,
1062 var_name='HOST_CXX_COMPILER',
1063 var_default=default_cxx_host_compiler,
1064 ask_for_var=('Please specify which C++ compiler should be used as the '
1065 'host C++ compiler.'),
1066 check_success=os.path.exists,
1067 error_msg='Invalid C++ compiler path. %s cannot be found.',
1068 )
1069
1070 write_action_env_to_bazelrc('HOST_CXX_COMPILER', host_cxx_compiler)
1071
1072
1073def set_host_c_compiler(environ_cp):

Callers 1

mainFunction · 0.85

Calls 2

Tested by

no test coverage detected