Skip to content
Snippets Groups Projects
Commit f66adff3 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Made tensor_runtime depend on clang if using it

parent df8a2037
No related branches found
No related tags found
No related merge requests found
...@@ -134,6 +134,7 @@ if(LLVM_BUILD_DIR) # Defined in ../CMakeLists.txt. This means we're compiling i ...@@ -134,6 +134,7 @@ if(LLVM_BUILD_DIR) # Defined in ../CMakeLists.txt. This means we're compiling i
# It's important that tensor_runtime.ll goes here if we're compiling with LLVM # It's important that tensor_runtime.ll goes here if we're compiling with LLVM
# Some HPVM passes look for tensor_runtime.ll in this folder (which is usually build/lib) # Some HPVM passes look for tensor_runtime.ll in this folder (which is usually build/lib)
set(TENSOR_RT_LL_PREFIX ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) set(TENSOR_RT_LL_PREFIX ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
add_dependencies(tensor_runtime clang)
else() else()
# Surely if we're compiling outside of hpvm, then we need the system-wide clang. # Surely if we're compiling outside of hpvm, then we need the system-wide clang.
# Use it but check version 9 first # Use it but check version 9 first
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment