Use double quoted patterns for more precise pattern matching in the binding.gyp files
This commit is contained in:
parent
86b8137457
commit
22d63338a2
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ pub fn generate_binding_files(repo_path: &Path, language_name: &str) -> Result<(
|
|||
eprintln!("Updating binding.gyp with new binding path");
|
||||
let binding_gyp =
|
||||
fs::read_to_string(path).with_context(|| "Failed to read binding.gyp")?;
|
||||
let binding_gyp = binding_gyp.replace("src/binding.cc", "bindings/node/binding.cc");
|
||||
let binding_gyp = binding_gyp.replace("\"src/binding.cc\"", "\"bindings/node/binding.cc\"");
|
||||
write_file(path, binding_gyp)
|
||||
},
|
||||
)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue