mirror of https://github.com/Revertron/Alfis
Added new configuration for cross-platform compilation.
parent
c2712a1e3a
commit
de61d17845
@ -1,3 +1,26 @@
|
|||||||
[build]
|
[build]
|
||||||
#rustflags = ["-Ctarget-cpu=native"]
|
#rustflags = ["-Ctarget-cpu=native", "-Clink-arg=-s"]
|
||||||
# or this: "-Ctarget-feature=+aes,+sha,+sse,+sse2,+avx,+avx2"
|
# or this: "-Ctarget-feature=+aes,+sha,+sse,+sse2,+avx,+avx2"
|
||||||
|
|
||||||
|
# Build these targets like this:
|
||||||
|
# Install docker
|
||||||
|
# cargo install cross
|
||||||
|
# cross build --release --no-default-features --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
[target.x86_64-unknown-linux-musl]
|
||||||
|
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||||
|
|
||||||
|
[target.i686-unknown-linux-musl]
|
||||||
|
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||||
|
|
||||||
|
[target.arm64-unknown-linux-musl]
|
||||||
|
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||||
|
|
||||||
|
[target.armhf-unknown-linux-musl]
|
||||||
|
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||||
|
|
||||||
|
[target.mips-unknown-linux-musl]
|
||||||
|
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||||
|
|
||||||
|
[target.mipsel-unknown-linux-musl]
|
||||||
|
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
Loading…
Reference in New Issue