Skip to content

Commit d611d31

Browse files
bors[bot]nagisa
andauthored
Merge #339
339: Fix Android’s CPU features r=reitermarkus a=nagisa The Rust Android target uses CPU features such as +popcnt and +sse4.2 which are not available on Penryn. List the used CPU exactly the same way as it is listed in the Rust target [here](https://github.com/rust-lang/rust/blob/master/src/librustc_target/spec/x86_64_linux_android.rs#L7). Please publish an updated docker image sooner rather than later. Co-authored-by: Simonas Kazlauskas <[email protected]>
2 parents 4fb4fc1 + b3beb5e commit d611d31

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docker/Dockerfile.x86_64-linux-android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN cp /android-ndk/sysroot/usr/lib/libz.so /system/lib/
2222
# Libz is distributed in the android ndk, but for some unknown reason it is not
2323
# found in the build process of some crates, so we explicit set the DEP_Z_ROOT
2424
ENV CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER=x86_64-linux-android-gcc \
25-
CARGO_TARGET_X86_64_LINUX_ANDROID_RUNNER="qemu-x86_64 -cpu Penryn" \
25+
CARGO_TARGET_X86_64_LINUX_ANDROID_RUNNER="qemu-x86_64 -cpu qemu64,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt" \
2626
CC_x86_64_linux_android=x86_64-linux-android-gcc \
2727
CXX_x86_64_linux_android=x86_64-linux-android-g++ \
2828
DEP_Z_INCLUDE=/android-ndk/sysroot/usr/include/ \

docker/linux-image.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ main() {
4949
powerpc64)
5050
# there is no stable port
5151
arch=ppc64
52-
# https://packages.debian.org/de/sid/linux-image-powerpc64
53-
kernel=5.2.0-3-powerpc64
52+
# https://packages.debian.org/en/sid/linux-image-powerpc64
53+
kernel=5.3.0-1-powerpc64
5454
debsource="deb http://ftp.ports.debian.org/debian-ports unreleased main"
5555
debsource="$debsource\ndeb http://ftp.ports.debian.org/debian-ports unstable main"
5656
# sid version of dropbear requires these dependencies
@@ -66,8 +66,8 @@ main() {
6666
;;
6767
sparc64)
6868
# there is no stable port
69-
# https://packages.debian.org/de/sid/linux-image-sparc64
70-
kernel=5.2.0-3-sparc64
69+
# https://packages.debian.org/en/sid/linux-image-sparc64
70+
kernel=5.3.0-1-sparc64
7171
debsource="deb http://ftp.ports.debian.org/debian-ports unreleased main"
7272
debsource="$debsource\ndeb http://ftp.ports.debian.org/debian-ports unstable main"
7373
# sid version of dropbear requires these dependencies

0 commit comments

Comments
 (0)