You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checking the environment variable CARGO_CFG_TARGET_ARCH would probably be the correct way (like avr_mcu::is_compiling_for_avr()).
I would have submitted a pull request, but with rustc 1.47.0-nightly (6c8927b0c 2020-07-26) I get the following error when retrieving the current mcu.
thread 'main' panicked at 'cannot retrieve mcu name, use a version of the avr-rust compiler that exposes the 'target_cpu' configuration option', avr-mcu-0.2.6\src\current.rs:35:24
I'm guessing, this will have to wait until a solution for exposing target_cpu is found.
The text was updated successfully, but these errors were encountered:
The check for the target arch in the build script doesn't work.
avrd/build.rs
Line 13 in 6072399
Checking the environment variable
CARGO_CFG_TARGET_ARCH
would probably be the correct way (likeavr_mcu::is_compiling_for_avr()
).I would have submitted a pull request, but with
rustc 1.47.0-nightly (6c8927b0c 2020-07-26)
I get the following error when retrieving the current mcu.thread 'main' panicked at 'cannot retrieve mcu name, use a version of the avr-rust compiler that exposes the 'target_cpu' configuration option', avr-mcu-0.2.6\src\current.rs:35:24
I'm guessing, this will have to wait until a solution for exposing
target_cpu
is found.The text was updated successfully, but these errors were encountered: