opgpcard: Add rudimentary logging to build.rs
This commit is contained in:
parent
46b5f59d0f
commit
f0d6d4b1d2
1 changed files with 2 additions and 0 deletions
|
@ -13,10 +13,12 @@ fn main() {
|
||||||
if flagfile.exists() {
|
if flagfile.exists() {
|
||||||
subplot_build::codegen("subplot/opgpcard.subplot")
|
subplot_build::codegen("subplot/opgpcard.subplot")
|
||||||
.expect("failed to generate code with Subplot");
|
.expect("failed to generate code with Subplot");
|
||||||
|
println!("cargo:warning=generating subplot tests");
|
||||||
} else {
|
} else {
|
||||||
// If we're not generating code from the subplot, we should at
|
// If we're not generating code from the subplot, we should at
|
||||||
// least create an empty file so that the tests/opgpcard.rs
|
// least create an empty file so that the tests/opgpcard.rs
|
||||||
// file can include it. Otherwise the build will fail.
|
// 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 out_dir = std::env::var("OUT_DIR").unwrap();
|
||||||
let include = Path::new(&out_dir).join("opgpcard.rs");
|
let include = Path::new(&out_dir).join("opgpcard.rs");
|
||||||
eprintln!("build.rs: include={}", include.display());
|
eprintln!("build.rs: include={}", include.display());
|
||||||
|
|
Loading…
Reference in a new issue