Run command and return (returncode, stdout, stderr).
(self, cmd: List[str])
| 54 | return self.info.version if self.info else None |
| 55 | |
| 56 | def _run_command(self, cmd: List[str]) -> Tuple[int, str, str]: |
| 57 | """Run command and return (returncode, stdout, stderr).""" |
| 58 | try: |
| 59 | result = subprocess.run(cmd, capture_output=True, text=True) |
| 60 | return result.returncode, result.stdout, result.stderr |
| 61 | except Exception as e: |
| 62 | return -1, "", str(e) |
| 63 | |
| 64 | |
| 65 | class GccToolchain(Toolchain): |