Skip to content

Commit

Permalink
[generate bindings]
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Jul 20, 2024
1 parent 60e1cfc commit 5498112
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,11 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) {
let r_headers: Vec<_> = r_headers
.into_iter()
.map(|x| {
let r_header_path = x.replace(r"\", r"/");
let r_header_path = r_header_path.replace(r"/R_ext", r"\R_ext");
let mut r_header_path = x.replace(r"\", r"/");
if cfg!(windows) {
r_header_path = r_header_path.replace(r"/R_ext", r"\R_ext");
}
let r_header_path = r_header_path;
r_header_path
})
.collect();
Expand Down

0 comments on commit 5498112

Please sign in to comment.