From 4b20e4249a8806da02c34e2be59ec7442918dc68 Mon Sep 17 00:00:00 2001 From: Mossa Date: Fri, 10 May 2024 00:29:58 +0200 Subject: [PATCH] [generate bindings] --- build.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/build.rs b/build.rs index 4b68875a..174124d2 100644 --- a/build.rs +++ b/build.rs @@ -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}");