From 0c6dce811bc7d820d849d49c3fa9257ef83baa41 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 27 Jul 2022 16:35:00 -0700 Subject: [PATCH] tpm2-sys: build libtpm2 with -Wno-error Recent OpenSSL versions have added deprecation warnings for functions used by libtpm2, which breaks the default build that uses -Werror. Force it off for our build.rs file so we can keep working until libtpm2 is updated. BUG=None TEST=tools/clippy Change-Id: I874df1393c6a9b5033e90e8182e6ba694d48e1df Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3790036 Reviewed-by: Dennis Kempin Tested-by: Daniel Verkamp Commit-Queue: Daniel Verkamp --- tpm2-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tpm2-sys/build.rs b/tpm2-sys/build.rs index f2a78ad526..78cd048562 100644 --- a/tpm2-sys/build.rs +++ b/tpm2-sys/build.rs @@ -49,6 +49,7 @@ fn build_libtpm2(out_dir: &Path) -> Result<()> { .arg(format!("AR={}ar", prefix)) .arg(format!("CC={}gcc", prefix)) .arg(format!("OBJCOPY={}objcopy", prefix)) + .arg("CFLAGS=-Wno-error") .arg(format!("obj={}", out_dir.display())) .current_dir("libtpm2") .status()?;