[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
Fri Sep 10 14:29:18 PDT 2021
mstorsjo updated this revision to Diff 372012.
mstorsjo added a comment.
Generalized the condition to a regex.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109493/new/
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 MATCHES "i?86-.*win.*")
set(GEN_UNDERSCORE "--underscore")
else()
set(GEN_UNDERSCORE "")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109493.372012.patch
Type: text/x-patch
Size: 518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210910/ffd7df30/attachment.bin>
More information about the llvm-commits
mailing list