[llvm-bugs] [Bug 44127] New: CMakeLists.txt for LLVM-C checks wrong host-triple for windows-x86

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Nov 23 11:25:26 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=44127

            Bug ID: 44127
           Summary: CMakeLists.txt for LLVM-C checks wrong host-triple for
                    windows-x86
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: tagoo at outlook.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

The CMakeLists.txt for the llvm-shlib is currently checking against
`LLVM_HOST_TRIPLE STREQUAL "1686=pc-win32"`:
https://github.com/llvm/llvm-project/blob/master/llvm/tools/llvm-shlib/CMakeLists.txt#L120

However, the default host-triple for the official Win32 builds is
"i686-pc-windows-msvc" (this is also the default host triple computed when
building locally with MSVC).

This results in the official LLVM-C.dll binary (as downloaded from
http://releases.llvm.org/download.html) being only 9kb in size and containing
no exports.

The CMakeLists.txt should likely default to "i686-pc-windows-msvc" so that
official builds work as expected. Ideally, the logic would also check other
Win32 triplets as appropriate.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191123/3d1fdc02/attachment.html>


More information about the llvm-bugs mailing list