Skip to content

Commit

Permalink
Remove unused defines from libjade build (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer authored Sep 28, 2023
1 parent bfe66dc commit 8889c70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sys/libjade/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ macro_rules! svec {
}

fn append_simd128_flags(flags: &mut Vec<String>) {
flags.push("-DSIMD128".to_string());
flags.push("-mavx".to_string());
}

fn append_simd256_flags(flags: &mut Vec<String>) {
flags.push("-DSIMD256".to_string());
flags.push("-mavx2".to_string());
}

Expand All @@ -20,9 +18,11 @@ fn create_bindings(platform: Platform, home_dir: &Path) {
let mut clang_args = vec![format!("-I{}", jazz_dir.join("include").display())];
if platform.simd128 {
append_simd128_flags(&mut clang_args);
clang_args.push("-DSIMD128".to_string());
}
if platform.simd256 {
append_simd256_flags(&mut clang_args);
clang_args.push("-DSIMD256".to_string());
}

let bindings = bindgen::Builder::default()
Expand Down
2 changes: 1 addition & 1 deletion sys/libjade/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.68.1 */

pub const JADE_HASH_SHA256_AMD64_REF_BYTES: u32 = 32;
pub const JADE_HASH_SHA256_AMD64_REF_ALGNAME: &[u8; 7] = b"SHA256\0";
Expand Down

0 comments on commit 8889c70

Please sign in to comment.