[all-commits] [llvm/llvm-project] a68ccb: [compiler-rt] Fix COMPILER_RT_OS_DIR for Android

Shoaib Meenai via All-commits all-commits at lists.llvm.org
Thu Jul 29 16:57:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a68ccba77a48494a5200245ddcd085e49a77a2d1
      https://github.com/llvm/llvm-project/commit/a68ccba77a48494a5200245ddcd085e49a77a2d1
  Author: Shoaib Meenai <smeenai at fb.com>
  Date:   2021-07-29 (Thu, 29 Jul 2021)

  Changed paths:
    M compiler-rt/cmake/base-config-ix.cmake

  Log Message:
  -----------
  [compiler-rt] Fix COMPILER_RT_OS_DIR for Android

Android has its own CMAKE_SYSTEM_NAME, but the OS is Linux (Android
target triples look like aarch64-none-linux-android21). The driver will
therefore search for compiler-rt libraries in the "linux" directory and
not the "android" directory, so the default placement of Android
compiler-rt libraries was incorrect. You could fix it by specifying
COMPILER_RT_OS_DIR manually, but it also makes sense to fix the default,
to save others from having to discover and fix the issue for themselves.




More information about the All-commits mailing list