-
-
Save michidk/86cd97a26c4fe05638340ba9bf8a485c to your computer and use it in GitHub Desktop.
Save as .cargo/config.toml; cargo build --release with Rust 1.98.1: 209 bytes, or 153 with minimal.ld
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [build] | |
| target = "x86_64-unknown-linux-gnu" | |
| rustflags = [ | |
| "-Cforce-unwind-tables=no", | |
| "-Crelocation-model=static", | |
| "-Clinker-features=-lld", | |
| "-Clink-arg=-nostartfiles", | |
| "-Clink-arg=-static", | |
| "-Clink-arg=-Wl,--build-id=none,-z,noseparate-code,-z,nosectionheader,--no-eh-frame-hdr", | |
| # "-Clink-arg=-Wl,-T,minimal.ld", | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment