| 217 | 'powerpc64', |
| 218 | 'powerpc64le', |
| 219 | 'riscv64', |
| 220 | 's390x', |
| 221 | 'sparc64', |
| 222 | 'x86_64', |
| 223 | ] |
| 224 | if Path(self.location, 'gas/config/tc-loongarch.c').exists(): |
| 225 | targets.append('loongarch64') |
| 226 | return targets |
| 227 | |
| 228 | def prepare(self) -> None: |
| 229 | if not tc_build.utils.path_is_set(self.location): |
| 230 | msg = 'No source location set?' |
| 231 | raise RuntimeError(msg) |
| 232 | if self.location.exists(): |
| 233 | return # source already set up |
| 234 | |
| 235 | if not tc_build.utils.path_is_set(self.tarball.local_location): |
| 236 | msg = 'No local tarball location set?' |