Start a binutils tool invocation for the configured architecture.
(self, name: str)
| 214 | ) |
| 215 | |
| 216 | def tool(self, name: str) -> list[str]: |
| 217 | """Start a binutils tool invocation for the configured architecture.""" |
| 218 | if platform.system() != "Linux": |
| 219 | # We can't use the local tools from macOS to build a Linux executable |
| 220 | return ["bin/ci-builder", "run", "stable", name] |
| 221 | # If we're on Linux, trust that the tools are installed instead of |
| 222 | # loading the slow ci-builder. If you don't have compilation tools |
| 223 | # installed you can still run `bin/ci-builder run stable |
| 224 | # bin/mzcompose ...`, and most likely the Cargo build will already |
| 225 | # fail earlier if you don't have compilation tools installed and |
| 226 | # run without the ci-builder. |
| 227 | return [name] |
| 228 | |
| 229 | def cargo_target_dir(self) -> Path: |
| 230 | """Determine the path to the target directory for Cargo.""" |
no test coverage detected