Skip to content

Commit

Permalink
Remove mimalloc workaround (#4606)
Browse files Browse the repository at this point in the history
- libatomic linking for armv6 has been fixed in purpleprotocol/mimalloc_rust@992c9da
  • Loading branch information
dfunkt authored Jun 24, 2024
1 parent 4233dbf commit 8e2a87f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ WORKDIR /app

# Environment variables for Cargo on Alpine based builds
RUN echo "export CARGO_TARGET=${RUST_MUSL_CROSS_TARGET}" >> /env-cargo && \
# To be able to build the armv6 image with mimalloc we need to tell the linker to also look for libatomic
if [[ "${TARGETARCH}${TARGETVARIANT}" == "armv6" ]] ; then echo "export RUSTFLAGS='-Clink-arg=-latomic'" >> /env-cargo ; fi && \
# Output the current contents of the file
cat /env-cargo

Expand Down
2 changes: 0 additions & 2 deletions docker/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ RUN source /env-cargo && \
{% elif base == "alpine" %}
# Environment variables for Cargo on Alpine based builds
RUN echo "export CARGO_TARGET=${RUST_MUSL_CROSS_TARGET}" >> /env-cargo && \
# To be able to build the armv6 image with mimalloc we need to tell the linker to also look for libatomic
if [[ "${TARGETARCH}${TARGETVARIANT}" == "armv6" ]] ; then echo "export RUSTFLAGS='-Clink-arg=-latomic'" >> /env-cargo ; fi && \
# Output the current contents of the file
cat /env-cargo

Expand Down

0 comments on commit 8e2a87f

Please sign in to comment.