Skip to content

Commit 652fddd

Browse files
authored
[openmp] post-merge: Fix openmp build (llvm#3963)
2 parents 06165b2 + bc2387e commit 652fddd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openmp/device/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ endif()
9696
# Trick to combine these into a bitcode file via the linker's LTO pass.
9797
add_executable(libompdevice ${src_files})
9898
set_target_properties(libompdevice PROPERTIES
99-
RUNTIME_OUTPUT_DIRECTORY "${LLVM_LIBRARY_OUTPUT_INTDIR}/${LLVM_DEFAULT_TARGET_TRIPLE}"
99+
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
100100
LINKER_LANGUAGE CXX
101101
BUILD_RPATH ""
102102
INSTALL_RPATH ""
@@ -124,7 +124,7 @@ install(TARGETS libompdevice
124124

125125
add_library(ompdevice.all_objs OBJECT IMPORTED)
126126
set_property(TARGET ompdevice.all_objs APPEND PROPERTY IMPORTED_OBJECTS
127-
${LLVM_LIBRARY_OUTPUT_INTDIR}/${LLVM_DEFAULT_TARGET_TRIPLE}/libomptarget-${target_name}.bc)
127+
${CMAKE_CURRENT_BINARY_DIR}/libomptarget-${target_name}.bc)
128128

129129
# Archive all the object files generated above into a static library
130130
add_library(ompdevice STATIC)

0 commit comments

Comments
 (0)