[all-commits] [llvm/llvm-project] 4f9c10: [libc] Add support for standalone cross compilatio...

Siva Chandra via All-commits all-commits at lists.llvm.org
Mon Dec 19 16:33:50 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f9c10eb48a3725ecfd844d44ccf3068fbadbb85
      https://github.com/llvm/llvm-project/commit/4f9c10eb48a3725ecfd844d44ccf3068fbadbb85
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2022-12-20 (Tue, 20 Dec 2022)

  Changed paths:
    M libc/CMakeLists.txt
    M libc/cmake/modules/LLVMLibCArchitectures.cmake
    M libc/cmake/modules/prepare_libc_gpu_build.cmake
    M libc/docs/gpu_mode.rst

  Log Message:
  -----------
  [libc] Add support for standalone cross compilation of libc.

One should be able to do a cross build of the libc now. For example, using
clang on a x86_64 linux host, one can build for an aarch64 linux target by
specifying -DLIBC_TARGET_TRIPLE=aarch64-linux-gnu.

Follow up changes will add a baremetal config and also appropriate
documentation about cross compiling the libc for CPU targets.

Reviewed By: jhuber6

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




More information about the All-commits mailing list