-
Notifications
You must be signed in to change notification settings - Fork 549
Open
Description
If TARGET = Some(thumbv7em-none-eabihf) then it is correctly mapped to:
Lines 2406 to 2412 in 1ca8b2a
| if target.full_arch.starts_with("thumbv7em") { | |
| cmd.args.push("-march=armv7e-m".into()); | |
| if target.abi == "eabihf" { | |
| cmd.args.push("-mfpu=fpv4-sp-d16".into()) | |
| } | |
| } |
However, if there is a provided CARGO_ENCODED_RUSTFLAGS = Some(-Ctarget-cpu=cortex-m7) then the aforementioned cc flags are wrong and should be -march=armv7e-m+fp.dp -mfloat-abi=hard -mfpu=auto.
Metadata
Metadata
Assignees
Labels
No labels