Set HOST_C_COMPILER.
(environ_cp)
| 1071 | |
| 1072 | |
| 1073 | def 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 | |
| 1090 | def set_computecpp_toolkit_path(environ_cp): |
no test coverage detected