File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ else: # Unices
169
169
if config .cuda_libdir :
170
170
config .test_flags += " -Wl,-rpath," + config .cuda_libdir
171
171
if config .libomptarget_current_target .startswith ('nvptx' ):
172
- config .test_flags_clang += " --libomptarget-nvptx-bc-path=" + config .llvm_library_intdir
172
+ config .test_flags_clang += " --libomptarget-nvptx-bc-path=" + config .llvm_library_intdir + "/nvptx64-nvidia-cuda"
173
173
if config .libomptarget_current_target .endswith ('-LTO' ):
174
174
config .test_flags += " -foffload-lto"
175
175
if config .libomptarget_current_target .endswith ('-JIT-LTO' ) and evaluate_bool_env (
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ endif()
57
57
# Trick to combine these into a bitcode file via the linker's LTO pass.
58
58
add_executable (libompdevice ${src_files} )
59
59
set_target_properties (libompdevice PROPERTIES
60
- RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
60
+ RUNTIME_OUTPUT_DIRECTORY " ${LLVM_LIBRARY_OUTPUT_INTDIR} / ${LLVM_DEFAULT_TARGET_TRIPLE} "
61
61
LINKER_LANGUAGE CXX
62
62
BUILD_RPATH ""
63
63
INSTALL_RPATH ""
@@ -85,7 +85,7 @@ install(TARGETS libompdevice
85
85
86
86
add_library (ompdevice.all_objs OBJECT IMPORTED )
87
87
set_property (TARGET ompdevice.all_objs APPEND PROPERTY IMPORTED_OBJECTS
88
- ${CMAKE_CURRENT_BINARY_DIR } /libomptarget-${target_name} .bc)
88
+ ${LLVM_LIBRARY_OUTPUT_INTDIR} / ${LLVM_DEFAULT_TARGET_TRIPLE } /libomptarget-${target_name} .bc)
89
89
90
90
# Archive all the object files generated above into a static library
91
91
add_library (ompdevice STATIC )
You can’t perform that action at this time.
0 commit comments