Fix hipify tool discovery in lit test for standalone build case

This commit is contained in:
dfukalov
2016-03-01 18:15:54 +03:00
parent 7b79c7c4fd
commit 0ca4ca8ba1
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ if( NOT PYTHONINTERP_FOUND )
"Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
endif()
set(BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} )
set(BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/.. )
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
@@ -16,7 +16,7 @@ configure_file(
add_lit_testsuite(check-hipify "Running HIPify regression tests"
${CMAKE_CURRENT_SOURCE_DIR}
PARAMS site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
DEPENDS hipify
DEPENDS hipify FileCheck lit
)
add_custom_target(check)
+1
View File
@@ -51,4 +51,5 @@ if not tool_path:
lit_config.note('Did not find ' + tool_name + ' in ' + llvm_tools_dir)
tool_path = llvm_tools_dir + '/' + tool_name
config.substitutions.append((tool_name, tool_path))
config.substitutions.append(("hipify", obj_root+"/hipify"))
+1 -1
View File
@@ -1,7 +1,7 @@
import sys
config.llvm_tools_dir = "@LLVM_TOOLS_BINARY_DIR@"
config.obj_root = "@CMAKE_CURRENT_BINARY_DIR@"
config.obj_root = "@BINARY_DIR@"
# Support substitution of the tools and libs dirs with user parameters. This is
# used when we can't determine the tool dir at configuration time.