Skip to content

support an armv7-android-linuxeabi target #33278

Closed
@froydnj

Description

@froydnj

Firefox for Android compiles its code with -march=armv7-a -mthumb -mfpu=vfp -mfloat-abi=softfp. In rustc terms, I think this would be -C +vfp2,+v7-a,+thumb2. AFAICT, this is somewhat different than the arm-linux-androideabi target, which appears to not assume the existence of an FPU, and also doesn't compile as Thumb where possible. When using Rust on Android, we'd like our Rust libraries to be just as well optimized as our C++ libraries, which means either a) having an official, tier-2 supported target; or b) compiling it ourselves.

One could multiply ARM targets to no end, but this seems like a pretty reasonable target for many Android devices out there. Is it possible to have this target added and supported?

cc @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions