mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
fixes build of tea.xyz/gx/cc
This commit is contained in:
parent
58701369e1
commit
6cdf1e0a5e
|
@ -1,6 +1,6 @@
|
|||
distributable: ~
|
||||
|
||||
# FIXME we want the c version eg. c99
|
||||
# FIXME we want the c version eg. c99
|
||||
# or should that be some kind of option? so you specify you want a cc that support c99
|
||||
versions:
|
||||
- 0.1.1
|
||||
|
|
|
@ -143,7 +143,7 @@ async function __build(pkg: Package): Promise<BuildResult> {
|
|||
}
|
||||
}
|
||||
|
||||
async function fetch_src(pkg: Package): Promise<[Path, Path]> {
|
||||
async function fetch_src(pkg: Package): Promise<[Path, Path] | undefined> {
|
||||
console.log('fetching', pkgstr(pkg))
|
||||
|
||||
// we run this as a script because we don’t want these deps imported into *this* env
|
||||
|
@ -155,5 +155,9 @@ async function fetch_src(pkg: Package): Promise<[Path, Path]> {
|
|||
})
|
||||
const out = await proc.output()
|
||||
const [dstdir, tarball] = new TextDecoder().decode(out).split("\n")
|
||||
if (!tarball) {
|
||||
// no tarball, e.g. tea.xyz/gx/cc
|
||||
return undefined
|
||||
}
|
||||
return [new Path(dstdir), new Path(tarball)]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue