(self, key: str)
| 148 | return tc_build.utils.UNINIT_PATH |
| 149 | |
| 150 | def from_env(self, key: str) -> Path: |
| 151 | if key not in os.environ: |
| 152 | return tc_build.utils.UNINIT_PATH |
| 153 | |
| 154 | if key == 'LD': |
| 155 | return self.validate_ld(os.environ[key], warn=True) |
| 156 | |
| 157 | if not (tool := shutil.which(os.environ[key])): |
| 158 | msg = f"{key} value ('{os.environ[key]}') could not be found on your system?" |
| 159 | raise RuntimeError(msg) |
| 160 | return Path(tool) |
| 161 | |
| 162 | def show_compiler_linker(self) -> None: |
| 163 | print(f"CC: {self.cc}") |
no test coverage detected