Skip to content

Commit

Permalink
Restore support for CPUs without AES-NI support
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Nov 13, 2024
1 parent 96cb482 commit da2c146
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/bootstrap-node.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ RUN \
if [ $TARGETARCH = "amd64" ] && [ "$RUSTFLAGS" = ""]; then \
case "$TARGETVARIANT" in \
# x86-64-v2 with AES-NI
"v2") export RUSTFLAGS="-C target-cpu=x86-64-v2 -C target-feature=+aes" ;; \
"v2") export RUSTFLAGS="-C target-cpu=x86-64-v2" ;; \
# x86-64-v3 with AES-NI
"v3") export RUSTFLAGS="-C target-cpu=x86-64-v3 -C target-feature=+aes" ;; \
# v4 is compiled for Zen 4+
Expand Down
2 changes: 1 addition & 1 deletion docker/farmer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ RUN \
if [ $TARGETARCH = "amd64" ] && [ "$RUSTFLAGS" = "" ]; then \
case "$TARGETVARIANT" in \
# x86-64-v2 with AES-NI
"v2") export RUSTFLAGS="-C target-cpu=x86-64-v2 -C target-feature=+aes" ;; \
"v2") export RUSTFLAGS="-C target-cpu=x86-64-v2" ;; \
# x86-64-v3 with AES-NI
"v3") export RUSTFLAGS="-C target-cpu=x86-64-v3 -C target-feature=+aes" ;; \
# v4 is compiled for Zen 4+
Expand Down
2 changes: 1 addition & 1 deletion docker/node.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ RUN \
if [ $TARGETARCH = "amd64" ] && [ "$RUSTFLAGS" = ""]; then \
case "$TARGETVARIANT" in \
# x86-64-v2 with AES-NI
"v2") export RUSTFLAGS="-C target-cpu=x86-64-v2 -C target-feature=+aes" ;; \
"v2") export RUSTFLAGS="-C target-cpu=x86-64-v2" ;; \
# x86-64-v3 with AES-NI
"v3") export RUSTFLAGS="-C target-cpu=x86-64-v3 -C target-feature=+aes" ;; \
# v4 is compiled for Zen 4+
Expand Down
2 changes: 1 addition & 1 deletion docker/runtime.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ RUN \
if [ $TARGETARCH = "amd64" ] && [ "$RUSTFLAGS" = ""]; then \
case "$TARGETVARIANT" in \
# x86-64-v2 with AES-NI
"v2") export RUSTFLAGS="-C target-cpu=x86-64-v2 -C target-feature=+aes" ;; \
"v2") export RUSTFLAGS="-C target-cpu=x86-64-v2" ;; \
# x86-64-v3 with AES-NI
"v3") export RUSTFLAGS="-C target-cpu=x86-64-v3 -C target-feature=+aes" ;; \
# v4 is compiled for Zen 4+
Expand Down

0 comments on commit da2c146

Please sign in to comment.