Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Derive the libuast os/arch selector from sys.platform.#157

Merged
creachadair merged 2 commits intobblfsh:masterfrom
creachadair:ambience
May 3, 2019
Merged

Derive the libuast os/arch selector from sys.platform.#157
creachadair merged 2 commits intobblfsh:masterfrom
creachadair:ambience

Conversation

@creachadair
Copy link
Contributor

Part of the fix for #156.

Part of the pyuast build process fetches a binary release of libuast. Previously, the release version was pinned to linux-amd64, and therefore did not link correctly on macOS (Darwin).

This change makes the build script consult sys.platform. The default remains linux-amd64 in case someone has another platform; if it was wrong before it will still be wrong, but in the same way.

@creachadair creachadair requested a review from dennwc May 2, 2019 17:03
@creachadair creachadair self-assigned this May 2, 2019
Part of the pyuast build process fetches a binary release of libuast.
Previously, the release version was pinned to linux-amd64.

This change makes it consult sys.platform.  Unfortunately, sys.platform doesn't
exactly match the release tag for windows, but since we only have binary
releases for Linux, Darwin, and Windows anyway, it is a straightforward patch.

The default remains linux-amd64 in case someone has another platform; if it was
wrong before it will still be wrong, but in the same way.

Signed-off-by: M. J. Fromberger <[email protected]>
Part of the fix for #156.

Signed-off-by: M. J. Fromberger <[email protected]>
@creachadair creachadair merged commit 788ceb1 into bblfsh:master May 3, 2019
@creachadair creachadair deleted the ambience branch May 3, 2019 15:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants