From f66adff300ac9c82f2dd82bb479136660501d923 Mon Sep 17 00:00:00 2001 From: Yifan Zhao <yifanz16@illinois.edu> Date: Mon, 18 Jan 2021 14:13:19 -0600 Subject: [PATCH] Made tensor_runtime depend on clang if using it --- hpvm/projects/hpvm-tensor-rt/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/hpvm/projects/hpvm-tensor-rt/CMakeLists.txt b/hpvm/projects/hpvm-tensor-rt/CMakeLists.txt index e42ced2737..2feeaa2fef 100644 --- a/hpvm/projects/hpvm-tensor-rt/CMakeLists.txt +++ b/hpvm/projects/hpvm-tensor-rt/CMakeLists.txt @@ -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 # 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}) + add_dependencies(tensor_runtime clang) else() # Surely if we're compiling outside of hpvm, then we need the system-wide clang. # Use it but check version 9 first -- GitLab