mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[OpenMP] Fixing llvm-omp-device-info compilation with runtimes
When using `-DLLVM_ENABLED_RUNTIMES` instead of `-DLLVM_ENABLED_PROJECTS` the `llvm-omp-device-info` tool is not compiled or installed. In general, no llvm tool would be build on runtimes, because the -DLLVM_BUILD_TOOLS flag is removed by the way runtimes compilation calls cmake again. This patch is simple. Just forward the value of this flag to the runtime cmake command. I'm also removing an unnecessary comment in the compilation of the tool Differential Revision: https://reviews.llvm.org/D107177 (cherry picked from commit 5424ceeda0534ab382e2a6cb192099f76ee8b12c)
This commit is contained in:
parent
70f5e23577
commit
9770d34891
@ -232,6 +232,7 @@ function(runtime_default_target)
|
|||||||
-DLLVM_DEFAULT_TARGET_TRIPLE=${TARGET_TRIPLE}
|
-DLLVM_DEFAULT_TARGET_TRIPLE=${TARGET_TRIPLE}
|
||||||
-DLLVM_ENABLE_PROJECTS_USED=${LLVM_ENABLE_PROJECTS_USED}
|
-DLLVM_ENABLE_PROJECTS_USED=${LLVM_ENABLE_PROJECTS_USED}
|
||||||
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=${LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default}
|
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=${LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default}
|
||||||
|
-DLLVM_BUILD_TOOLS=${LLVM_BUILD_TOOLS}
|
||||||
-DCMAKE_C_COMPILER_WORKS=ON
|
-DCMAKE_C_COMPILER_WORKS=ON
|
||||||
-DCMAKE_CXX_COMPILER_WORKS=ON
|
-DCMAKE_CXX_COMPILER_WORKS=ON
|
||||||
-DCMAKE_ASM_COMPILER_WORKS=ON
|
-DCMAKE_ASM_COMPILER_WORKS=ON
|
||||||
|
Loading…
Reference in New Issue
Block a user