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 <denniskempin@google.com>
Tested-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2022-07-27 16:35:00 -07:00 committed by crosvm LUCI
parent 4fea399df9
commit 0c6dce811b

View file

@ -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()?;