[llvm-bugs] [Bug 48898] New: Building LLVM Runtimes with MinGW impossible
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 27 06:30:56 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48898
Bug ID: 48898
Summary: Building LLVM Runtimes with MinGW impossible
Product: Build scripts
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: cmake
Assignee: unassignedbugs at nondot.org
Reporter: markus.boeck02 at gmail.com
CC: llvm-bugs at lists.llvm.org
I have an LLVM build that which uses the LLVM_ENABLE_RUNTIMES option and then
builds many different runtimes for different target triples. Among those are
eg. x86_64-pc-windows-msvc and x86_64-w64-windows-gnu.
Prior to LLVM 12 this worked without problems and when building builtins or
runtimes it'd use clang and clang++ for the GNU targets and clang-cl for the
msvc targets by adding variables such as
BUILTINS_x86_64-pc-windows-msvc_CMAKE_SYSTEM_NAME to "Windows".
I am suspecting that since commit c74da051b8680d322328a1ba2e6c2ed794a74f59
it is now always setting the CMAKE_SYSTEM_NAME to Windows by default, which
makes a lot of sense, but now clang-cl is always selected which leads to
runtimes targeting GNU being built with an msvc target instead.
The fact that it worked before was more of an coincident to be fair, since
apparently CMAKE_SYSTEM_NAME used to be blank. I also don't know how one would
be able to fix this. Maybe an argument to llvm_ExternalProject from the
runtimes/CMakeLists.txt script that passes the target triple? I don't know.
If you do know any workarounds in the meanwhile that'd be great as well.
Until then using the LLVM_ENABLE_RUNTIMES option simply won't work with MinGW
targets.
--
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/20210127/2e417440/attachment.html>
More information about the llvm-bugs
mailing list