Skip to content

Commit 875d1e0

Browse files
committed
Add Erlang JIT on arm64
This has been supported since 25.x, which we're using on all versions now. 👍
1 parent 0192a91 commit 875d1e0

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

3.10/alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.10/ubuntu/Dockerfile

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.11/alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.11/ubuntu/Dockerfile

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.12/alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.12/ubuntu/Dockerfile

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.9/alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3.9/ubuntu/Dockerfile

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile-alpine.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ RUN set -eux; \
140140
hostArch="$(dpkg-architecture --query DEB_HOST_GNU_TYPE)"; \
141141
buildArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
142142
dpkgArch="$(dpkg --print-architecture)"; dpkgArch="${dpkgArch##*-}"; \
143-
# JIT is only supported on amd64 (until 24.x+1, where it will support arm64 as well); https://github.com/erlang/otp/blob/OTP-24.0.5/erts/configure#L21694-L21709 / https://github.com/erlang/otp/pull/4869
143+
# JIT is only supported on amd64 + arm64; https://github.com/erlang/otp/blob/OTP-25.3.2.2/erts/configure#L24306-L24347
144144
jitFlag=; \
145145
case "$dpkgArch" in \
146-
amd64) jitFlag='--enable-jit' ;; \
146+
amd64 | arm64) jitFlag='--enable-jit' ;; \
147147
esac; \
148148
./configure \
149149
--host="$hostArch" \

Dockerfile-ubuntu.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ RUN set -eux; \
139139
hostArch="$(dpkg-architecture --query DEB_HOST_GNU_TYPE)"; \
140140
buildArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
141141
dpkgArch="$(dpkg --print-architecture)"; dpkgArch="${dpkgArch##*-}"; \
142-
# JIT is only supported on amd64 (until 24.x+1, where it will support arm64 as well); https://github.com/erlang/otp/blob/OTP-24.0.5/erts/configure#L21694-L21709 / https://github.com/erlang/otp/pull/4869
142+
# JIT is only supported on amd64 + arm64; https://github.com/erlang/otp/blob/OTP-25.3.2.2/erts/configure#L24306-L24347
143143
jitFlag=; \
144144
case "$dpkgArch" in \
145-
amd64) jitFlag='--enable-jit' ;; \
145+
amd64 | arm64) jitFlag='--enable-jit' ;; \
146146
esac; \
147147
./configure \
148148
--host="$hostArch" \

0 commit comments

Comments
 (0)