Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally support prebuilds for libc and arm flavors #14

Merged
merged 2 commits into from
Jan 21, 2019

Conversation

vweevers
Copy link
Member

This is:

  1. An alternative to Add detection for non-glibc libc on Linux #9 (to support [PoC] Evaluate prebuildify for bundling prebuilts rolftimmermans/zeromq-ng#46 and create prebuilts for alpine linux? Level/leveldown#388), with the same naming scheme. Both these solutions are backwards compatible, except that Add detection for non-glibc libc on Linux #9 isn't backwards compatible when process.env.LIBC === 'glibc' (it will try to read ${platform}glibc-* in that case). The solution I'm proposing here gives you the choice of including the libc flavor in your prebuild names.
  2. To support [wip] cross-compile prebuilds Level/leveldown#572, which is about publishing prebuilds for versioned ARM architectures, e.g. ${platform}-arm-v6, ${platform}-arm-v7.

cc @lgeiger @ralphtheninja @ahdinosaur

index.js Outdated Show resolved Hide resolved
@@ -9,6 +9,8 @@ var abi = process.versions.modules // TODO: support old node where this is undef
var runtime = isElectron() ? 'electron' : 'node'
var arch = os.arch()
var platform = os.platform()
var libc = process.env.LIBC || (isAlpine(platform) ? 'musl' : 'glibc')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@ralphtheninja ralphtheninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mafintosh mafintosh merged commit 994b71d into prebuild:master Jan 21, 2019
@mafintosh
Copy link
Collaborator

3.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants