Skip to content

Commit

Permalink
Use the c6 as the default for the imac target
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Jan 1, 2025
1 parent 7fcb47a commit 67abbf3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/native/cargo_driver/chip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ impl Chip {
"xtensa-esp32-espidf" => &[Chip::ESP32],
"xtensa-esp32s2-espidf" => &[Chip::ESP32S2],
"xtensa-esp32s3-espidf" => &[Chip::ESP32S3],
"riscv32imc-esp-espidf" => &[Chip::ESP32C3, Chip::ESP32C2], // Keep C3 as the first in the list, so it is picked up by default; as C2 does not work for older ESP IDFs
"riscv32imac-esp-espidf" => &[Chip::ESP32H2, Chip::ESP32C5, Chip::ESP32C6],
// Keep C3 as the first in the list, so it is picked up by default; as C2 does not work for older ESP IDFs
"riscv32imc-esp-espidf" => &[Chip::ESP32C3, Chip::ESP32C2],
// Keep C6 at the first in the list, so it is picked up by default; as H2 does not have a Wifi
"riscv32imac-esp-espidf" => &[Chip::ESP32C6, Chip::ESP32C5, Chip::ESP32H2],
"riscv32imafc-esp-espidf" => &[Chip::ESP32P4],
_ => bail!("Unsupported target '{}'", rust_target_triple),
};
Expand Down

0 comments on commit 67abbf3

Please sign in to comment.