[Openmp-commits] [PATCH] D85210: [OpenMP] Don't use MSVC workaround with MinGW
Mateusz MikuĊa via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Aug 4 07:58:42 PDT 2020
mati865 added a comment.
Little background:
Recent CMake versions changed behaviour on MinGW and treat `.a` as static libs only. Currently CMake creates `omp.a` as the import library and new CMake doesn't like that.
To fix it it's enough to do this change:
-set(LIBOMP_IMP_LIB_FILE ${LIBOMP_LIB_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX})
+set(LIBOMP_IMP_LIB_FILE ${LIBOMP_LIB_NAME}${CMAKE_IMPORT_LIBRARY_SUFFIX})
But I've thought it'd be nice to avoid MSVC hack entirely when targeting MinGW.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85210/new/
https://reviews.llvm.org/D85210
More information about the Openmp-commits
mailing list