[PATCH] D93603: [OpenMP] Fixed the issue that CMake variables for OpenMP were not passed through when building OpenMP with LLVM_ENABLE_RUNTIMES
Shilei Tian via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 20 15:40:23 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG36b0dd8f678f: [OpenMP] Fixed the issue that CMake variables for OpenMP were not passed… (authored by tianshilei1992).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93603/new/
https://reviews.llvm.org/D93603
Files:
llvm/runtimes/CMakeLists.txt
Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -355,6 +355,9 @@
string(REPLACE "-" "_" canon_name ${projName})
string(TOUPPER ${canon_name} canon_name)
list(APPEND prefixes ${canon_name})
+ if (${canon_name} STREQUAL "OPENMP")
+ list(APPEND prefixes "LIBOMP" "LIBOMPTARGET")
+ endif()
# Many compiler-rt options start with SANITIZER_ rather than COMPILER_RT_,
# so when compiler-rt is enabled, consider both.
if(canon_name STREQUAL "COMPILER_RT")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93603.313003.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201220/056525af/attachment.bin>
More information about the llvm-commits
mailing list