japaric / cargo-call-stack

Whole program static stack analysis
Apache License 2.0
560 stars 50 forks source link

use a smaller 'std' facade for no-std targets #62

Closed japaric closed 2 years ago

japaric commented 2 years ago

fixes #55

-Z build-std builds a "no op" std for the target, even no-std ones that won't work for ARMv6-M because std depends on CAS and that target lacks CAS ARMv7-M also has problems with recent nightlies due to rust-lang/rust#98378

this commit changes the logic to use a smaller -Z build-std=alloc subset for no-std targets targets are considered 'no-std' when rustc --print=cfg --target $T reports target_os="none"