Set HOST_CXX_COMPILER.
(environ_cp)
| 1054 | |
| 1055 | |
| 1056 | def 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 | |
| 1073 | def set_host_c_compiler(environ_cp): |
no test coverage detected