Skip to content

Commit

Permalink
[generate bindings]
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed May 9, 2024
1 parent 4d61be4 commit 4b20e42
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,12 +443,7 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) {
println!(
"Generating bindings for target: {target}, os: {target_os}, architecture: {target_arch}"
);
let r_include_path = r_paths
.include
.canonicalize()
.unwrap()
.display()
.to_string();
let r_include_path = r_paths.include.display().to_string().replace(r"\", r"/");
let r_include_path_escaped = regex::escape(&r_include_path);
let r_include_path_escaped = format!("{r_include_path_escaped}.*");
println!("cargo::warning=regex matching {r_include_path} \t {r_include_path_escaped}");
Expand Down

0 comments on commit 4b20e42

Please sign in to comment.