[Openmp-commits] [PATCH] D84148: [openmp] Fix libomp.so copy in multi-config generators.
David Truby via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 24 06:35:56 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbb099c87abbf: [openmp] Don't copy exports into the source folder by default. (authored by DavidTruby).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84148/new/
https://reviews.llvm.org/D84148
Files:
openmp/runtime/CMakeLists.txt
openmp/runtime/cmake/LibompExports.cmake
Index: openmp/runtime/cmake/LibompExports.cmake
===================================================================
--- openmp/runtime/cmake/LibompExports.cmake
+++ openmp/runtime/cmake/LibompExports.cmake
@@ -78,7 +78,7 @@
endif()
add_custom_command(TARGET omp POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory ${LIBOMP_EXPORTS_LIB_DIR}
- COMMAND ${CMAKE_COMMAND} -E copy ${LIBOMP_OUTPUT_DIRECTORY}/${LIBOMP_LIB_FILE} ${LIBOMP_EXPORTS_LIB_DIR}
+ COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:omp> ${LIBOMP_EXPORTS_LIB_DIR}
)
# Copy Windows import library into exports/ directory post build
Index: openmp/runtime/CMakeLists.txt
===================================================================
--- openmp/runtime/CMakeLists.txt
+++ openmp/runtime/CMakeLists.txt
@@ -114,7 +114,7 @@
# Turning this to FALSE aids parallel builds to not interfere with each other.
# Currently, the testsuite module expects the just built OpenMP library to be located inside the exports/
# directory. TODO: have testsuite run under llvm-lit directly. We can then get rid of copying to exports/
-set(LIBOMP_COPY_EXPORTS TRUE CACHE STRING
+set(LIBOMP_COPY_EXPORTS FALSE CACHE STRING
"Should exports be copied into source exports/ directory?")
# HWLOC-support
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84148.280442.patch
Type: text/x-patch
Size: 1265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200724/f2face1b/attachment.bin>
More information about the Openmp-commits
mailing list