[Openmp-commits] [PATCH] D61673: Fixed creation of aliases in Windows build

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed May 8 04:02:50 PDT 2019


AndreyChurbanov created this revision.
AndreyChurbanov added reviewers: jlpeyton, hbae, tlwilmar.
AndreyChurbanov added a project: OpenMP.
Herald added subscribers: openmp-commits, jdoerfert, mgorny.

Current Windows build (install) creates a copy of libomp.lib interface library with wrong extension - .dll instead of .lib, thus we miss libiomp5md.lib file (created for backwards compatibility), and have two libiomp5md.dll files - one correct in /bin directory, another one broken in /lib directory.

The patch fixes this.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D61673

Files:
  runtime/src/CMakeLists.txt


Index: runtime/src/CMakeLists.txt
===================================================================
--- runtime/src/CMakeLists.txt
+++ runtime/src/CMakeLists.txt
@@ -295,7 +295,7 @@
     install(CODE "execute_process(COMMAND \"\${CMAKE_COMMAND}\" -E copy \"${LIBOMP_LIB_FILE}\"
       \"${alias}${LIBOMP_LIBRARY_SUFFIX}\" WORKING_DIRECTORY \${CMAKE_INSTALL_PREFIX}/bin)")
     install(CODE "execute_process(COMMAND \"\${CMAKE_COMMAND}\" -E copy \"${LIBOMP_IMP_LIB_FILE}\"
-      \"${alias}${LIBOMP_LIBRARY_SUFFIX}\" WORKING_DIRECTORY \${CMAKE_INSTALL_PREFIX}/${OPENMP_INSTALL_LIBDIR})")
+      \"${alias}${CMAKE_STATIC_LIBRARY_SUFFIX}\" WORKING_DIRECTORY \${CMAKE_INSTALL_PREFIX}/${OPENMP_INSTALL_LIBDIR})")
   endforeach()
 else()
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61673.198619.patch
Type: text/x-patch
Size: 736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20190508/8ab024d3/attachment.bin>


More information about the Openmp-commits mailing list