[builtins][Android] Fix 386->686 adjustment
authorRyan Prichard <rprichard@google.com>
Fri, 19 Jun 2020 06:57:08 +0000 (23:57 -0700)
committerRyan Prichard <rprichard@google.com>
Fri, 19 Jun 2020 23:08:20 +0000 (16:08 -0700)
commitac716c0cc42afc8a179751794da5c661a9ca3f30
tree9be481929e2d7e62b9085eca20587ffa2ba8d44d
parent8627190f310774434350822e9cc80b72b4a041d4
[builtins][Android] Fix 386->686 adjustment

At this point in this code:
 - COMPILER_RT_DEFAULT_TARGET_TRIPLE is "i686-linux-android"
 - arch is "i386"

The get_compiler_rt_target function currently turns that into:

   i686-android-linux-android

The ${COMPILER_RT_OS_SUFFIX} is "-android" and redundant, so stop
adding it.

The get_compiler_rt_target() function is used for the
LLVM_ENABLE_PER_TARGET_RUNTIME_DIR mode that isn't normally used with
Android.

Differential Revision: https://reviews.llvm.org/D82150
compiler-rt/cmake/Modules/CompilerRTUtils.cmake