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 (#203)

fix #202

This allows to set the `OQS_PERMIT_UNSUPOPORTED_ARCHITECTURE` CMake
option via an environment variable.
  • Loading branch information
wucke13 authored Oct 18, 2023
1 parent 5c6ddec commit 8a0229a
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 @@ -100,6 +100,12 @@ fn build_from_source() -> PathBuf {
} 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 8a0229a

Please sign in to comment.