Skip to content

[BUG] The legacy toolchain file incorrectly sets CMAKE_ANDROID_ARM_MODE #2222

Open

Description

@FooIbar

Description

CMAKE_ANDROID_ARM_MODE should be ON/OFF per its doc, but the legacy toolchain file will set it to ANDROID_ARM_MODE, which is thumb/arm, so CMAKE_ANDROID_ARM_MODE will always be evaluated as ON.
I'm surprised it's broken since the beginning: https://android-review.googlesource.com/c/platform/ndk/+/360029

I am using a supported NDK

  • I have checked and the NDK I'm using is currently supported

Affected versions

r27, r28, r29

Activity

  1. enh-google commented on Feb 12, 2026

    @enh-google
    Collaborator

    I'm surprised it's broken since the beginning: https://android-review.googlesource.com/c/platform/ndk/+/360029

    hmm... that's always one of those weird "maybe this isn't broken so much as unused and best left alone" cases then?

  2. FooIbar commented on Feb 13, 2026

    @FooIbar
    Author

    It may silently hurt performance/density, but could be hard to notice since it only affects generated instructions rather than causing a build failure.
    I only found it when investigating why Corrosion wasn't using the Neon toolchain corrosion-rs/corrosion#661

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions