WSL cargo test is now working
This commit is contained in:
5
build.rs
5
build.rs
@@ -23,6 +23,11 @@ fn has_tool(name: &str) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
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") {
|
if has_tool("cmake") {
|
||||||
println!("cargo:rustc-cfg=has_cmake");
|
println!("cargo:rustc-cfg=has_cmake");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ fn test_context(name: &str) -> TemplateContext {
|
|||||||
TemplateContext {
|
TemplateContext {
|
||||||
project_name: name.to_string(),
|
project_name: name.to_string(),
|
||||||
anvil_version: ANVIL_VERSION.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(),
|
fqbn: "arduino:avr:uno".to_string(),
|
||||||
baud: 115200,
|
baud: 115200,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user