[PATCH] D109493: [llvm-shlib] Fix the i686 MSVC triple check for listing symbols to export in LLVM-C.dll

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 9 01:44:44 PDT 2021


mstorsjo created this revision.
mstorsjo added a reviewer: phosek.
Herald added subscribers: pengfei, mgorny.
mstorsjo requested review of this revision.
Herald added a project: LLVM.

https://reviews.llvm.org/D47381 / eb46c95c3e7aeba4d183ca614fe238067eddf97f
changed the triples set up by GetHostTriple.cmake without changing
the corresponding condition in llvm-shlib.

Since then, the 32 bit x86 build of LLVM-C.dll has contained no
exported symbols at all.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109493

Files:
  llvm/tools/llvm-shlib/CMakeLists.txt


Index: llvm/tools/llvm-shlib/CMakeLists.txt
===================================================================
--- llvm/tools/llvm-shlib/CMakeLists.txt
+++ llvm/tools/llvm-shlib/CMakeLists.txt
@@ -124,7 +124,7 @@
   list(REMOVE_DUPLICATES LIB_NAMES)
 
   # The python script needs to know whether symbols are prefixed with underscores or not.
-  if(LLVM_HOST_TRIPLE STREQUAL "i686-pc-win32")
+  if(LLVM_HOST_TRIPLE STREQUAL "i686-pc-windows-msvc")
     set(GEN_UNDERSCORE "--underscore")
   else()
     set(GEN_UNDERSCORE "")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109493.371524.patch
Type: text/x-patch
Size: 527 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210909/ffa2af9e/attachment.bin>


More information about the llvm-commits mailing list