Skip to content

Commit

Permalink
fix: build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Yato202010 committed Jan 11, 2025
1 parent c882c47 commit fff746a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::fs::remove_dir_all;

fn main() {
println!("cargo:rerun-if-changed=vendor");

Expand All @@ -19,12 +21,15 @@ fn main() {
if !srcdir.exists() {
std::fs::create_dir(&srcdir).unwrap();
}
remove_dir_all(&srcdir).unwrap();
fs_extra::dir::copy(
&d,
&srcdir,
&fs_extra::dir::CopyOptions::new()
.overwrite(true)
.content_only(true),
.content_only(true)
.copy_inside(true)
.skip_exist(false),
)
.unwrap();
autotools::Config::new(srcdir)
Expand Down

0 comments on commit fff746a

Please sign in to comment.