Android toolchain: add ANDROID_COMPILER_PREFIX variable.
ClosedPublic

Authored by dfaure on Feb 12 2018, 3:06 PM.

Details

Summary

For ARM it's not necessary, but when building for a x86 tablet I had to
set ANDROID_TOOLCHAIN=x86 while gcc/g++ are prefixed with
i686-linux-android.

i.e. the path is android-ndk-r10e/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-g++

Test Plan

cmake picks up the right compiler for me now

Diff Detail

Repository
R240 Extra CMake Modules
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
dfaure created this revision.Feb 12 2018, 3:06 PM
Restricted Application added projects: Frameworks, Build System. · View Herald TranscriptFeb 12 2018, 3:06 PM
Restricted Application added a subscriber: Build System. · View Herald Transcript
dfaure requested review of this revision.Feb 12 2018, 3:06 PM
apol accepted this revision.Feb 12 2018, 3:15 PM
This revision is now accepted and ready to land.Feb 12 2018, 3:15 PM
dfaure closed this revision.Feb 12 2018, 3:41 PM