Fix hipify tool discovery in lit test for standalone build case

Bu işleme şunda yer alıyor:
dfukalov
2016-03-01 18:15:54 +03:00
ebeveyn 3d5de5305d
işleme 724519bb9c
3 değiştirilmiş dosya ile 4 ekleme ve 3 silme
+2 -2
Dosyayı Görüntüle
@@ -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
Dosyayı Görüntüle
@@ -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
Dosyayı Görüntüle
@@ -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.