[LLVM] Added OpenMP to `LLVM_ALL_RUNTIMES`
authorShilei Tian <tianshilei1992@gmail.com>
Sun, 10 Jan 2021 21:45:39 +0000 (16:45 -0500)
committerShilei Tian <tianshilei1992@gmail.com>
Sun, 10 Jan 2021 21:45:51 +0000 (16:45 -0500)
This patch added `openmp` to `LLVM_ALL_RUNTIMES` so that when the CMake argument `LLVM_ENABLE_RUNTIMES=all`, OpenMP can also be built.

Reviewed By: jdoerfert

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

llvm/runtimes/CMakeLists.txt

index 57db5c3..2a03fbf 100644 (file)
@@ -20,7 +20,7 @@ foreach(entry ${entries})
 endforeach()
 
 # Side-by-side subprojects layout.
-set(LLVM_ALL_RUNTIMES "libcxx;libcxxabi;libunwind;compiler-rt")
+set(LLVM_ALL_RUNTIMES "libcxx;libcxxabi;libunwind;compiler-rt;openmp")
 set(LLVM_ENABLE_RUNTIMES "" CACHE STRING
   "Semicolon-separated list of runtimes to build (${LLVM_ALL_RUNTIMES}), or \"all\".")
 if(LLVM_ENABLE_RUNTIMES STREQUAL "all" )