[Openmp-commits] [PATCH] D108534: [OpenMP][Docs] add clang to LLVM_ENABLE_PROJECTS in build instructions

Shivam Gupta via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Aug 23 00:59:32 PDT 2021

xgupta created this revision.
xgupta added a reviewer: Meinersbur.
Herald added subscribers: arphaman, guansong, yaxunl.
xgupta requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

Without enabling clang following error messagesa are generated -

CMake Error at /home/user/project/llvm-project/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt:134 (add_custom_command):

  Error evaluating generator expression:
  No target "clang"

Call Stack (most recent call first):

  /home/user/project/llvm-project/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt:154 (add_cuda_bc_library)

And with enabling clang in the list of llvm projects to build, build was successful.

  rG LLVM Github Monorepo



Index: openmp/www/index.html
--- openmp/www/index.html
+++ openmp/www/index.html
@@ -161,7 +161,7 @@
     <li><code>cd llvm-project</code></li>
     <li><code>mkdir build && cd build</code></li>
-    <li><code>cmake ../llvm -DLLVM_ENABLE_PROJECTS=openmp -DCMAKE_C_COMPILER=<C compiler> -DCMAKE_CXX_COMPILER=<C++ compiler></code></li>
+    <li><code>cmake ../llvm -DLLVM_ENABLE_PROJECTS="clang;openmp" -DCMAKE_C_COMPILER=<C compiler> -DCMAKE_CXX_COMPILER=<C++ compiler></code></li>
     <li><code>make omp</code></li>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108534.368045.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210823/0fca757a/attachment.bin>

More information about the Openmp-commits mailing list