From 9e880cc7b1f9cd608cd3c0f7d5af49246e869d40 Mon Sep 17 00:00:00 2001 From: dfunkt Date: Sat, 1 Jun 2024 20:44:21 +0300 Subject: [PATCH] Remove mimalloc workaround - libatomic linking for armv6 has been fixed in https://github.com/purpleprotocol/mimalloc_rust/commit/992c9da4c5afba7fbf4c5815c43c8f0fbd2a8da6 --- docker/Dockerfile.alpine | 2 -- docker/Dockerfile.j2 | 2 -- 2 files changed, 4 deletions(-) diff --git a/docker/Dockerfile.alpine b/docker/Dockerfile.alpine index 53492855..31182115 100644 --- a/docker/Dockerfile.alpine +++ b/docker/Dockerfile.alpine @@ -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 diff --git a/docker/Dockerfile.j2 b/docker/Dockerfile.j2 index 3552cc39..d71b4ccc 100644 --- a/docker/Dockerfile.j2 +++ b/docker/Dockerfile.j2 @@ -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