Skip to content

Commit

Permalink
Update custom_target test
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 17, 2023
1 parent e37f5ad commit d6c159a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,10 @@ fn custom_target() {
let dir = &root;
fs::write(
root.join(".cargo/config.toml"),
format!(
r#"
target.{target}.linker = "avr-gcc"
r#"
target.'cfg(target_arch = "avr")'.linker = "avr-gcc"
target.'cfg(target_arch = "avr")'.rustflags = "-C opt-level=s"
"#
),
"#,
)?;
let spec_path = fixtures_path().join(format!("target-specs/{target}.json"));
assert_eq!(spec_path.exists(), !is_builtin);
Expand Down

0 comments on commit d6c159a

Please sign in to comment.