Avoid running entire napi_build::setup twice
This commit is contained in:
parent
e36e1e1fbb
commit
5364458366
2 changed files with 2 additions and 4 deletions
build/src
|
@ -93,7 +93,7 @@ cfg_if! {
|
|||
}
|
||||
}
|
||||
|
||||
fn setup_napi_feature() {
|
||||
pub fn setup_napi_feature() {
|
||||
let napi_version = String::from_utf8(
|
||||
Command::new("node")
|
||||
.args(&["-e", "console.log(process.versions.napi)"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue