Skip to content

Commit

Permalink
fix build time regression
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer committed Oct 15, 2020
1 parent 581e505 commit 6795849
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions evercrypt-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ extern crate bindgen;

use std::{collections::HashMap, env, fs, path::Path, path::PathBuf, process::Command};

// TODO: add ARM builds

#[cfg(windows)]
fn build_hacl(lib_dir: &Path, build_config: &BuildConfig) {
// TODO: add Windows builds
Expand Down Expand Up @@ -184,17 +182,11 @@ fn main() {
println!("cargo:rustc-env=LD_LIBRARY_PATH={}", hacl_src_path_str);

// HACL/Evercrypt header paths
let kremlin_include = hacl_dir.join("dist").join("kremlin").join("include");
let kremlib_minimal = hacl_dir
.join("dist")
.join("kremlin")
.join("kremlib")
.join("dist")
.join("minimal");
// XXX: Using the output paths here causes constant re-builds.
let hacl_includes = vec![
"-I".to_owned() + hacl_src_path_str,
"-I".to_owned() + kremlin_include.to_str().unwrap(),
"-I".to_owned() + kremlib_minimal.to_str().unwrap(),
"-Ihacl-star/dist/".to_owned() + build_config.hacl_src_dir,
"-Ihacl-star/dist/kremlin/include".to_string(),
"-Ihacl-star/dist/kremlin/kremlib/dist/minimal".to_string(),
];

// Build hacl/evercrypt
Expand Down

0 comments on commit 6795849

Please sign in to comment.