[libc-commits] [PATCH] D140351: [libc] Add support for standalone cross compilation of libc.
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Dec 19 13:49:08 PST 2022
sivachandra created this revision.
sivachandra added a reviewer: jhuber6.
Herald added subscribers: libc-commits, ecnelises, tschuett, pengfei, abidh, kristof.beyls.
Herald added projects: libc-project, All.
sivachandra requested review of this revision.
One should be able to do a cross build of the libc. For example, using
clang on a x86_64 linux host, one can build for an aarch64 linux host by
specifcy -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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D140351
Files:
libc/CMakeLists.txt
libc/cmake/modules/LLVMLibCArchitectures.cmake
libc/cmake/modules/prepare_libc_gpu_build.cmake
libc/docs/gpu_mode.rst
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140351.484061.patch
Type: text/x-patch
Size: 9727 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221219/57752058/attachment.bin>
More information about the libc-commits
mailing list