[Openmp-commits] [PATCH] D110354: Add option to build libomp library using Microsoft Visual C++ naming scheme.
Bran Hagger via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Nov 1 09:48:21 PDT 2021
branh added inline comments.
================
Comment at: openmp/runtime/CMakeLists.txt:359
+if (OPENMP_BUILD_140)
+ set(LIBOMP_LIB_NAME ${LIBOMP_LIB_NAME}140.${LIBOMP_ARCH})
+endif()
----------------
branh wrote:
> protze.joachim wrote:
> > Similar as above, what is 140?
> > Probably combine LLVM_VERSION_MAJOR and LLVM_VERSION_MINOR?
> >
> > Why not make destinction Debug/non-Debug here?
> The version number corresponds to the toolset the dll is built for. The last time the Visual C++ toolset broke binary compatibility was Visual Studio 14, so the version number is 14.0.
As for last question (why not make debug/non-debug distinction here), the dlls are named libomp140(d).dll whereas the libraries are named libomp(d).dll in the MSVC naming scheme. Making the name decision closer to where the name is actually used makes which name is used where clearer and helped ensure I didn't miss a name.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110354/new/
https://reviews.llvm.org/D110354
More information about the Openmp-commits
mailing list