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

Function set_host_c_compiler

configure.py:1073–1087  ·  view source on GitHub ↗

Set HOST_C_COMPILER.

(environ_cp)

Source from the content-addressed store, hash-verified

1071
1072
1073def set_host_c_compiler(environ_cp):
1074 """Set HOST_C_COMPILER."""
1075 default_c_host_compiler = which('gcc') or ''
1076
1077 host_c_compiler = prompt_loop_or_load_from_env(
1078 environ_cp,
1079 var_name='HOST_C_COMPILER',
1080 var_default=default_c_host_compiler,
1081 ask_for_var=('Please specify which C compiler should be used as the host '
1082 'C compiler.'),
1083 check_success=os.path.exists,
1084 error_msg='Invalid C compiler path. %s cannot be found.',
1085 )
1086
1087 write_action_env_to_bazelrc('HOST_C_COMPILER', host_c_compiler)
1088
1089
1090def set_computecpp_toolkit_path(environ_cp):

Callers 1

mainFunction · 0.85

Calls 2

Tested by

no test coverage detected