diff options
author | Siva Chandra Reddy <sivachandra@google.com> | 2022-12-17 00:04:23 +0000 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@google.com> | 2022-12-20 00:33:35 +0000 |
commit | 4f9c10eb48a3725ecfd844d44ccf3068fbadbb85 (patch) | |
tree | 390b3d16b65324839ee10a57a32174c6d8acb33a /libc/docs | |
parent | ee3d9ee49c2ea08ea40b95d2e6159a027740c1aa (diff) | |
download | llvm-4f9c10eb48a3725ecfd844d44ccf3068fbadbb85.tar.gz |
[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
Diffstat (limited to 'libc/docs')
-rw-r--r-- | libc/docs/gpu_mode.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/docs/gpu_mode.rst b/libc/docs/gpu_mode.rst index b95dba3184cf..b71b6eec5dae 100644 --- a/libc/docs/gpu_mode.rst +++ b/libc/docs/gpu_mode.rst @@ -44,7 +44,7 @@ configuration will look like this: -DLLVM_ENABLE_RUNTIMES="libc;openmp" \ -DCMAKE_BUILD_TYPE=<Debug|Release> \ # Select build type -DLLVM_LIBC_FULL_BUILD=ON \ # We need the full libc - -DLLVM_LIBC_TARGET_OS=gpu \ # Build in GPU mode + -DLIBC_GPU_BUILD=ON \ # Build in GPU mode -DLLVM_LIBC_GPU_ARCHITECTURES=all \ # Build all supported architectures -DCMAKE_INSTALL_PREFIX=<PATH> \ # Where 'libcgpu.a' will live $> ninja install |