Skip to content

Commit ca0e85d

Browse files
committed
put CC inline
1 parent b0af7df commit ca0e85d

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ RUN case "$TARGETARCH" in \
3030
&& wget -qO- "https://musl.cc/$MUSL-cross.tgz" | tar -xzC /root/ \
3131
&& PATH="/root/$MUSL-cross/bin:$PATH" \
3232
&& CC=/root/$MUSL-cross/bin/$MUSL-gcc \
33+
&& echo "CC=$CC" \
3334
&& rustup override set nightly \
34-
&& rustup target add $RUST_TARGET \
35-
&& RUSTFLAGS="-C linker=$CC" \
36-
&& CC=$CC \
37-
&& cargo build --target "$RUST_TARGET" --release --features "local-tun local-redir armv8 neon stream-cipher aead-cipher-2022" \
35+
&& rustup target add "$RUST_TARGET" \
36+
&& RUSTFLAGS="-C linker=$CC" CC=$CC cargo build --target "$RUST_TARGET" --release --features "local-tun local-redir armv8 neon stream-cipher aead-cipher-2022" \
3837
&& mv target/$RUST_TARGET/release/ss* target/release/
3938

4039
FROM alpine:3.16 AS sslocal

0 commit comments

Comments
 (0)