-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
I noticed that passing -Z flags seems not to work as I expect:
cargo build --release -Z build-std=core -Z build-std-features=panic_immediate_abort --target thumbv7em-none-eabi && arm-none-eabi-size target/thumbv7em-none-eabi/release/redacted
Finished release [optimized + debuginfo] target(s) in 0.13s
text data bss dec hex filename
15448 56 205248 220752 35e50 target/thumbv7em-none-eabi/release/redacted
cargo size --release -Z build-std=core -Z build-std-features=panic_immediate_abort --target thumbv7em-none-eabi
Finished release [optimized + debuginfo] target(s) in 0.10s
text data bss dec hex filename
19688 56 205248 224992 36ee0 redacted
cargo size --release --target thumbv7em-none-eabi
Finished release [optimized + debuginfo] target(s) in 0.10s
text data bss dec hex filename
19688 56 205248 224992 36ee0 redacted
In the second invocation, the size SHOULD be the same, but 19K is what I see when I don't enable build-std(-features).
Metadata
Metadata
Assignees
Labels
No labels