Skip to content

Commit

Permalink
[libc][Docs] Add proper 'offload' build to use libc with offload
Browse files Browse the repository at this point in the history
Summary:
Since this was added the offloading target now requires `offload`.

Fixes: #127458
  • Loading branch information
jhuber6 committed Feb 17, 2025
1 parent 29ca3b8 commit 0d2722c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/docs/gpu/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ arguments automatically.
$> cd build
$> cmake ../llvm -G Ninja \
-DLLVM_ENABLE_PROJECTS="clang;lld" \
-DLLVM_ENABLE_RUNTIMES="openmp" \
-DLLVM_ENABLE_RUNTIMES="openmp;offload" \
-DCMAKE_BUILD_TYPE=<Debug|Release> \ # Select build type
-DCMAKE_INSTALL_PREFIX=<PATH> \ # Where the libraries will live
-DRUNTIMES_nvptx64-nvidia-cuda_LLVM_ENABLE_RUNTIMES=libc \
Expand Down

0 comments on commit 0d2722c

Please sign in to comment.