<div dir="ltr"><div>Hi David,<br></div><div>Interesting.<br></div><div>I tested rebuilding from source on windows, using the source archive on the downlodpage. While the x64 target using cmake created a proper solution for VS, the x86 target created a solution where some libs were not added as dependency on the LLVM-C library and the LLVM-C.exports, too. In my particular case LLVMGlobalISel and LLVMXCodeGen were not wired up correctly. Once i had these builded separately, the final linking seemed to not take any of the builded libs into account. On my system the x86 DLL was 9 kbytes, too. So in addition to the used host-triple, something else might be broken. I haven't done anything with CMake yet, to give an answer on how to fix it.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Fr., 3. Apr. 2020 um 14:52 Uhr schrieb David Major <<a href="mailto:dmajor@mozilla.com">dmajor@mozilla.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I suspect we took the wrong branch here <a href="https://github.com/llvm/llvm-project/blob/ab411801b82783eb7f652701ccfce81b16cf1811/llvm/tools/llvm-shlib/CMakeLists.txt#L119-L124" target="_blank">https://github.com/llvm/llvm-project/blob/ab411801b82783eb7f652701ccfce81b16cf1811/llvm/tools/llvm-shlib/CMakeLists.txt#L119-L124</a> because LLVM_HOST_TRIPLE might have been "i686-pc-windows-msvc" instead.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 1, 2020 at 6:14 PM Alexander Benikowski via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Just checked again. Only the x86 dll is broken. The x64 is fine.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 1. Apr. 2020 um 23:19 Uhr schrieb Alexander Benikowski <<a href="mailto:sebal007@googlemail.com" target="_blank">sebal007@googlemail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Hello,<br></div>I downloaded the LLVM 10 release for windows and noticed, that the LLVM-C.dll for x86 has a size of 9kb, which seems strangely small.<br><br></div>Both, the dll for x86 and x64, have no export directory. It is not possible to link them statically to Delphi code or call GetProcAddress on them.<br><br></div>I do remember that this worked initially when <a href="https://reviews.llvm.org/D56774" target="_blank">https://reviews.llvm.org/D56774</a> was done when compiling the dll using cmake+vs on windows.<br></div>
</blockquote></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>
</blockquote></div>