Skip to content

Commit

Permalink
feat(liboqs): allow setting OQS_PERMIT_UNSUPPORTED_ARCHITECTURE CMa…
Browse files Browse the repository at this point in the history
…ke option via environment variable (open-quantum-safe#203)

fix open-quantum-safe#202

This allows to set the `OQS_PERMIT_UNSUPOPORTED_ARCHITECTURE` CMake
option via an environment variable.
  • Loading branch information
wucke13 authored and bacnh85 committed Feb 15, 2024
1 parent 8e0bde8 commit d1c15cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions oqs-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ fn main() {
} else {
config.define("OQS_USE_OPENSSL", "No");
}

let permit_unsupported = "OQS_PERMIT_UNSUPPORTED_ARCHITECTURE";
if let Ok(str) = std::env::var(permit_unsupported) {
config.define(permit_unsupported, str);
}

let outdir = config.build_target("oqs").build();

// lib is put into $outdir/build/lib
Expand Down

0 comments on commit d1c15cf

Please sign in to comment.