fix: don't use explicit dir separator in buildscript

This commit is contained in:
zaaarf 2023-11-20 10:13:42 +01:00
parent 367bd0390a
commit 38870f5670
No known key found for this signature in database
GPG key ID: 6445A5CD15E5B40C

View file

@ -9,7 +9,9 @@ fn main() {
let out_dir = Path::new(&out_dir_var);
let generated_glue_file = out_dir.join("generated_glue.in");
let src_dir = Path::new("src/main/rust/");
let src_dir = Path::new("src")
.join("main")
.join("rust");
let glue_file = src_dir.join("glue.in");
RifgenGenerator::new(TypeCases::CamelCase,Language::Java, vec!(src_dir))
@ -39,8 +41,5 @@ fn main() {
out_dir.join("glue.rs"),
);
println!(
"cargo:rerun-if-changed={}",
Path::new("src/main").join(&generated_glue_file).display()
);
println!("cargo:rerun-if-changed={}", generated_glue_file.display());
}