<div dir="ltr"><div><div><div>@Nakamura<br></div>Well it is unsupported, because noone added a script to generate the required DEF-File(since it seems noone wants to use export definitions).<br></div>Somewhere i have a batchscript that does just that and(in theory therefore) even runs from cmake(in the cmake files there is only a script for Mac iirc and none for Windows).<br></div>Maybe i can find it and someone with cmake expertise can add it to the scripts/proper buildstages<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-09 11:59 GMT+02:00 NAKAMURA Takumi via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It's unsupported on MS toolchain. It's too hard to make LLVM headers and libs DLL-ready.<div>It would be theoretically possible on mingw. (oops, it requires awk...) </div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 9, 2017 at 5:25 PM biologi spm 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to build Clang/LLVM with -DLLVM_BUILD_LLVM_DYLIB=ON and<br>
-DLLVM_LINK_LLVM_DYLIB=ON to reduce the size of toolchain.<br>
<br>
I am getting LINK error 1181 about `lib\LLVM.lib` not found. After<br>
investigating, `lib\LLVM.lib` is supposed to be produced along with<br>
`bin\LLVM.dll`. `bin\LLVM.dll` is indeed produced, but it does not<br>
contain any exported symbols (10KB only) because LLVM does not use<br>
`__declspec(dllexport)` and `__declspec(dllimport)`, so lib.exe<br>
refuses to produce `lib\LLVM.lib`.<br>
<br>
If I just build static-linked Clang/LLVM (default), it works fine.<br>
<br>
Windows bot of WebAssembly waterfall is also affected:<br>
<a href="https://github.com/WebAssembly/waterfall/commit/2051fd4cdb2b4017e66dfcd70203d40f3d0b461d" rel="noreferrer" target="_blank">https://github.com/<wbr>WebAssembly/waterfall/commit/<wbr>2051fd4cdb2b4017e66dfcd70203d4<wbr>0f3d0b461d</a><br>
<br>
Compiler: Visual Studio 2017<br>
<br>
CMake configuration:<br>
<br>
cmake -GNinja -Bbuild -Hllvm -DCMAKE_BUILD_TYPE=Release<br>
-DLLVM_INCLUDE_EXAMPLES=OFF<br>
-DLLVM_INCLUDE_TESTS=OFF<br>
-DCMAKE_INSTALL_PREFIX=d:\a\1\<wbr>b<br>
-DLLVM_TARGETS_TO_BUILD=X86<br>
-DLLVM_INSTALL_TOOLCHAIN_ONLY=<wbr>ON<br>
-DLLVM_BUILD_LLVM_DYLIB=ON<br>
-DLLVM_LINK_LLVM_DYLIB=ON<br>
-DLLVM_EXPERIMENTAL_TARGETS_<wbr>TO_BUILD=WebAssembly<br>
______________________________<wbr>_________________<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="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</blockquote></div>
</div></div><br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>