diff options
-rw-r--r-- | openmp/libomptarget/DeviceRTL/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openmp/libomptarget/DeviceRTL/CMakeLists.txt b/openmp/libomptarget/DeviceRTL/CMakeLists.txt index 148dad2a04fc..eb107be37ccc 100644 --- a/openmp/libomptarget/DeviceRTL/CMakeLists.txt +++ b/openmp/libomptarget/DeviceRTL/CMakeLists.txt @@ -41,8 +41,8 @@ endif() # Get compiler directory to try to locate a suitable linker. get_filename_component(compiler_dir ${cuda_compiler} DIRECTORY) -set(llvm_link "${compiler_dir}/llvm-link") -set(opt "${compiler_dir}/opt") +set(llvm_link "${LLVM_TOOLS_BINARY_DIR}/llvm-link") +set(opt "${LLVM_TOOLS_BINARY_DIR}/opt") if (NOT LIBOMPTARGET_NVPTX_BC_LINKER STREQUAL "") set(bc_linker ${LIBOMPTARGET_NVPTX_BC_LINKER}) |