[build] Fix LLVM_ENABLE_RUNTIMES override condition

I forgot to add parentheses in fa44d72b9e, though I prefer the
expanded form anyway.
This commit is contained in:
Shoaib Meenai 2020-01-29 13:40:36 -08:00
parent c12f046eb9
commit 0423ddfb81
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ else() # if this is included from LLVM's CMake
endif()
endforeach()
if(NOT RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES OR RUNTIMES_${name}_LLVM_ENABLE_RUNTIMES)
if(NOT RUNTIMES_${name}_LLVM_ENABLE_RUNTIMES AND NOT RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES)
string(REPLACE ";" "|" LLVM_ENABLE_RUNTIMES_PASSTHROUGH "${LLVM_ENABLE_RUNTIMES}")
list(APPEND ${name}_extra_args -DLLVM_ENABLE_RUNTIMES=${LLVM_ENABLE_RUNTIMES_PASSTHROUGH})
endif()