Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused defines from libjade build #98

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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