[all-commits] [llvm/llvm-project] 9221aa: [CMake] Fix MIPSr6 build for compiler-rt

YunQiang Su via All-commits all-commits at lists.llvm.org
Mon Oct 17 21:49:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9221aa6d649f0f3c9027525260cec1f06e33bb85
      https://github.com/llvm/llvm-project/commit/9221aa6d649f0f3c9027525260cec1f06e33bb85
  Author: YunQiang Su <wzssyqa at gmail.com>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M compiler-rt/CMakeLists.txt
    M compiler-rt/cmake/Modules/CompilerRTUtils.cmake
    M compiler-rt/cmake/base-config-ix.cmake

  Log Message:
  -----------
  [CMake] Fix MIPSr6 build for compiler-rt

The current version pass -mips64r2 or -mips32r2 options,
which make it failed to build on r6 platform.

In this patch: we detect whether we are MIPSr6 by
    _MIPS_ARCH_MIPS32R6/_MIPS_ARCH_MIPS64R6
The out and install path is set to the default triple instead of
hardcoded one, since the clang ask for it.

Differential Revision: https://reviews.llvm.org/D135735




More information about the All-commits mailing list