Skip to content

Commit

Permalink
Add tss2-sys when generating bindings too
Browse files Browse the repository at this point in the history
The tss2-sys is only being linked to explicitly when the bindings are
not generated, after #226. This fixes that discrepancy.

Signed-off-by: Ionut Mihalcea <[email protected]>
  • Loading branch information
ionut-arm committed May 6, 2021
1 parent 01391d9 commit e32b361
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tss-esapi-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ fn main() {

#[cfg(feature = "generate-bindings")]
pub fn generate_from_system(esapi_out: PathBuf) {
pkg_config::Config::new()
.atleast_version(MINIMUM_VERSION)
.probe("tss2-sys")
.expect("Failed to find tss2-sys library.");
let tss2_esys = pkg_config::Config::new()
.atleast_version(MINIMUM_VERSION)
.probe("tss2-esys")
Expand Down

0 comments on commit e32b361

Please sign in to comment.