MCPcopy Create free account
hub / github.com/ClangBuiltLinux/tc-build / prepare

Method prepare

tc_build/binutils.py:219–233  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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?'

Callers

nothing calls this directly

Calls 2

extractMethod · 0.80
downloadMethod · 0.45

Tested by

no test coverage detected