From fca471ef64b95f3fbc06c79abb4ba9b089d2586f Mon Sep 17 00:00:00 2001 From: Raatty Date: Sat, 19 Oct 2019 18:42:53 +1300 Subject: [PATCH] now compiles on pi --- Cargo.toml | 3 +-- README.md | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/Cargo.toml b/Cargo.toml index be6991a..30d3580 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,5 +15,4 @@ chrono = "0.4" [profile.release] codegen-units = 1 panic = 'abort' -lto = true -opt-level = "z" \ No newline at end of file +opt-level = "z" diff --git a/README.md b/README.md new file mode 100644 index 0000000..7b9579f --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# How I compile on pi +```sh +RUSTFLAGS="-C link-arg=-s" cargo build --release --target=armv7-unknown-linux-musleabihf +```