Skip to content

Commit

Permalink
Upgrade to the latest version of detect-libc (#166)
Browse files Browse the repository at this point in the history
Uses the Report API where available (Node.js 12+)
Otherwise spawns a single child process (Node.js 8, 10)
  • Loading branch information
lovell authored Jan 28, 2022
1 parent 8ee70f9 commit f71c6b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"napi"
],
"dependencies": {
"detect-libc": "^1.0.3",
"detect-libc": "^2.0.0",
"expand-template": "^2.0.3",
"github-from-package": "0.0.0",
"minimist": "^1.2.3",
Expand Down
2 changes: 1 addition & 1 deletion rc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const detectLibc = require('detect-libc')
const napi = require('napi-build-utils')

const env = process.env
const libc = env.LIBC || (detectLibc.isNonGlibcLinux && detectLibc.family) || ''
const libc = env.LIBC || (detectLibc.isNonGlibcLinuxSync() && detectLibc.familySync()) || ''

// Get the configuration
module.exports = function (pkg) {
Expand Down

0 comments on commit f71c6b9

Please sign in to comment.