From f0d6d4b1d253616feaad085f8a405e0531b5f7d5 Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Thu, 27 Oct 2022 11:53:45 +0200 Subject: [PATCH] opgpcard: Add rudimentary logging to build.rs --- tools/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/build.rs b/tools/build.rs index 608f687..b3b1113 100644 --- a/tools/build.rs +++ b/tools/build.rs @@ -13,10 +13,12 @@ fn main() { if flagfile.exists() { subplot_build::codegen("subplot/opgpcard.subplot") .expect("failed to generate code with Subplot"); + println!("cargo:warning=generating subplot tests"); } else { // If we're not generating code from the subplot, we should at // least create an empty file so that the tests/opgpcard.rs // file can include it. Otherwise the build will fail. + println!("cargo:warning=flagfile not found"); let out_dir = std::env::var("OUT_DIR").unwrap(); let include = Path::new(&out_dir).join("opgpcard.rs"); eprintln!("build.rs: include={}", include.display());