diff --git a/build.rs b/build.rs index 462449c..a011aad 100644 --- a/build.rs +++ b/build.rs @@ -23,6 +23,11 @@ fn has_tool(name: &str) -> bool { } fn main() { + println!("cargo::rustc-check-cfg=cfg(has_cmake)"); + println!("cargo::rustc-check-cfg=cfg(has_cpp_compiler)"); + println!("cargo::rustc-check-cfg=cfg(has_git)"); + println!("cargo::rustc-check-cfg=cfg(has_arduino_cli)"); + if has_tool("cmake") { println!("cargo:rustc-cfg=has_cmake"); } diff --git a/tests/script_execution_test.rs b/tests/script_execution_test.rs index 761d669..25f1df2 100644 --- a/tests/script_execution_test.rs +++ b/tests/script_execution_test.rs @@ -35,7 +35,7 @@ fn test_context(name: &str) -> TemplateContext { TemplateContext { project_name: name.to_string(), anvil_version: ANVIL_VERSION.to_string(), - board_name: "Arduino Uno (ATmega328P)".to_string(), + board_name: "uno".to_string(), // <-- was "Arduino Uno (ATmega328P)" fqbn: "arduino:avr:uno".to_string(), baud: 115200, }