mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
fix: aws-lc requires bindgen-cli
This commit is contained in:
32
Cross.toml
32
Cross.toml
@@ -1,9 +1,37 @@
|
||||
[build.env]
|
||||
passthrough = ["RUSTFLAGS"]
|
||||
pre-build = [
|
||||
# https://aws.github.io/aws-lc-rs/requirements/linux.html
|
||||
"apt-get update",
|
||||
"apt-get install --assume-yes libclang1",
|
||||
"cargo install --force --locked bindgen-cli",
|
||||
]
|
||||
|
||||
[target.x86_64-pc-windows-gnu]
|
||||
pre-build = [
|
||||
# Install NVIM for rustls, which deps on aws-lc-rs by default, and it needs NASM
|
||||
# Install NASM for rustls, which deps on aws-lc-rs by default, and it needs NASM
|
||||
"apt-get update",
|
||||
"apt-get install --assume-yes nasm clang",
|
||||
"apt-get install --assume-yes libclang1 nasm cargo",
|
||||
"cargo install --force --locked bindgen-cli",
|
||||
]
|
||||
|
||||
[target.aarch64-unknown-linux-gnu]
|
||||
pre-build = []
|
||||
|
||||
[target.aarch64-unknown-linux-musl]
|
||||
pre-build = []
|
||||
|
||||
[target.x86_64-unknown-linux-gnu]
|
||||
pre-build = []
|
||||
|
||||
[target.x86_64-unknown-linux-musl]
|
||||
pre-build = []
|
||||
|
||||
[target.i686-unknown-linux-gnu]
|
||||
pre-build = []
|
||||
|
||||
[target.aarch64-apple-darwin]
|
||||
pre-build = []
|
||||
|
||||
[target.x86_64-apple-darwin]
|
||||
pre-build = []
|
||||
|
||||
@@ -33,6 +33,7 @@ RUN case "$TARGETARCH" in \
|
||||
&& echo "CC=$CC" \
|
||||
&& rustup override set stable \
|
||||
&& rustup target add "$RUST_TARGET" \
|
||||
&& cargo install --force --locked bindgen-cli \
|
||||
&& RUSTFLAGS="-C linker=$CC" CC=$CC cargo build --target "$RUST_TARGET" --release --features "full" \
|
||||
&& mv target/$RUST_TARGET/release/ss* target/release/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user