Skip to content

Commit

Permalink
fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
woelper committed Nov 12, 2023
1 parent 0636a03 commit 1bc561c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ use std::fs::remove_file;

#[allow(dead_code)]
fn setup_heif() {
// use std::fs::create_dir_all;
// use std::fs::remove_dir_all;
// use std::process::Command;
let out_dir = env::var("OUT_DIR").unwrap();
let heif_path = format!("{out_dir}/libheif");
println!("heif is at {heif_path}");
#[cfg(target_os = "linux")]
{
use std::fs::create_dir_all;
use std::fs::remove_dir_all;
use std::process::Command;
_ = remove_dir_all(&heif_path);
// _ = remove_dir_all("libheif");
Command::new("git")
Expand Down

0 comments on commit 1bc561c

Please sign in to comment.