Skip to content

Commit

Permalink
Build with ENABLE_DILITHIUM=1
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Jan 9, 2025
1 parent c2f3298 commit 00982c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws-lc-sys/builder/cc_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ impl CcBuilder {
// The order of includes matters
if let Some(prefix) = &self.build_prefix {
cc_build
.define("ENABLE_DILITHIUM", "1")
.define("BORINGSSL_IMPLEMENTATION", "1")
.define("BORINGSSL_PREFIX", prefix.as_str());
cc_build.include(self.manifest_dir.join("generated-include"));
Expand Down
1 change: 1 addition & 0 deletions aws-lc-sys/builder/cmake_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ impl CmakeBuilder {
// Build flags that minimize our dependencies.
cmake_cfg.define("DISABLE_PERL", "ON");
cmake_cfg.define("DISABLE_GO", "ON");
cmake_cfg.define("ENABLE_DILITHIUM", "1");

if is_no_asm() {
let opt_level = cargo_env("OPT_LEVEL");
Expand Down
1 change: 1 addition & 0 deletions aws-lc-sys/builder/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ fn add_header_include_path(args: &mut Vec<String>, path: String) {

fn prepare_clang_args(manifest_dir: &Path, options: &BindingOptions) -> Vec<String> {
let mut clang_args: Vec<String> = Vec::new();
clang_args.push(String::from("-DENABLE_DILITHIUM=1"));

add_header_include_path(
&mut clang_args,
Expand Down

0 comments on commit 00982c2

Please sign in to comment.