-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to the latest version of detect-libc
libc family detection uses the non-blocking Report API where available (Node.js 12+) otherwise spawns a single child process
- Loading branch information
Showing
4 changed files
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -302,7 +302,7 @@ module.exports.evaluate = function(package_json, options, napi_build_version) { | |
target_platform: options.target_platform || process.platform, | ||
arch: options.target_arch || process.arch, | ||
target_arch: options.target_arch || process.arch, | ||
libc: options.target_libc || detect_libc.family || 'unknown', | ||
libc: options.target_libc || detect_libc.familySync() || 'unknown', | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lovell
Author
Contributor
|
||
module_main: package_json.main, | ||
toolset: options.toolset || '', // address https://github.com/mapbox/node-pre-gyp/issues/119 | ||
bucket: package_json.binary.bucket, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is invoking
detect_libc.familySync()
rather than referencing it.