mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[OpenMP] Fixed the issue that CMake variables for OpenMP were not passed through when building OpenMP with LLVM_ENABLE_RUNTIMES
Currently when building OpenMP along with LLVM, CMake variables for OpenMP (prefix with `LIBOMP` and `LIBOMPTARGET`) will not be passed through because by default it uses the prefix of the runtime name, aka `OPENMP` in this case. This patch fixed this issue. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D93603
This commit is contained in:
parent
4460105032
commit
b888a79274
@ -355,6 +355,9 @@ ${error} Set RUNTIMES_BUILD_ALLOW_DARWIN to allow a single darwin triple.")
|
||||
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")
|
||||
|
Loading…
Reference in New Issue
Block a user