Skip to content

Commit

Permalink
Fix RUSTFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergeek77 authored Nov 18, 2024
1 parent db44de4 commit 52132bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile-backend
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ RUN --mount=type=cache,target=/lemmy/target set -ex; \
RUN --mount=type=cache,target=/lemmy/target set -ex; \
# Build with 16 codegen units 32-bit architectures due to build issues
if [ "$(getconf LONG_BIT)" = "32" ]; then \
RUSTFLAGS='RUSTFLAGS=-Ccodegen-units=16'; \
export RUSTFLAGS="-Ccodegen-units=16"; \
fi; \
if [ "${RUST_RELEASE_MODE}" = "release" ]; then \
cargo clean --release; \
RUST_BACKTRACE=full ${RUSTFLAGS} cargo build --features "${CARGO_BUILD_FEATURES}" --release; \
RUST_BACKTRACE=full cargo build --features "${CARGO_BUILD_FEATURES}" --release; \
mv target/"${RUST_RELEASE_MODE}"/lemmy_server ./lemmy_server; \

# Compress the binary with upx
Expand Down

0 comments on commit 52132bb

Please sign in to comment.