<div dir="ltr">Just to add to this, the way you ask for it is by adding -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly to your CMake invocation. Also the primary reason that we have not yet proposed coming out of experimental yet is that the WebAssembly spec itself is not yet finalized (although it's getting close: <a href="http://webassembly.org/roadmap/">http://webassembly.org/roadmap/</a>). So we didn't want to be in a situation where e.g. stable LLVM or Linux distributions were shipping a wasm backend that didn't match any stable format shipped in a wasm engine implementation. So if you want to experiment with wasm you should really use tip-of-tree. The other caveat is that we don't have any stable ABIs or conventions yet so all of that is subject to change.<div><br></div><div>Having said all that, we would love to have you experiment, so do let us know if we can help you out.</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 3, 2017 at 1:34 AM Mehdi Amini via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">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"><div style="word-wrap:break-word" class="gmail_msg">Hi, <div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">WebAssembly is an experimental target (<a href="http://llvm.org/docs/DeveloperPolicy.html#new-targets" class="gmail_msg" target="_blank">http://llvm.org/docs/DeveloperPolicy.html#new-targets</a> ), and thus isn’t build by default, you need to explicitly ask for it to be built.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">— </div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg">Mehdi</div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg">On Jan 3, 2017, at 1:32 AM, Мельников Алексей via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="gmail_msg" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="m_-4814765985466563617Apple-interchange-newline gmail_msg"><div class="gmail_msg"><div id="m_-4814765985466563617divtagdefaultwrapper" dir="ltr" style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif" class="gmail_msg"><div style="margin-top:0px;margin-bottom:0px" class="gmail_msg">Hello.</div><div style="margin-top:0px;margin-bottom:0px" class="gmail_msg"><span style="font-size:12pt" class="gmail_msg">Excuse me.</span><br class="gmail_msg"></div><div style="margin-top:0px;margin-bottom:0px" class="gmail_msg"><br class="gmail_msg"></div><div style="margin-top:0px;margin-bottom:0px" class="gmail_msg">Why CMakeLists.txt from llvm-3.9.1.src does not contain WebAssembly target?</div><div style="margin-top:0px;margin-bottom:0px" class="gmail_msg">So, it is like</div><p style="margin-top:0px;margin-bottom:0px" class="gmail_msg"> </p><p style="margin-top:0px;margin-bottom:0px" class="gmail_msg"></p><div class="gmail_msg">set(LLVM_ALL_TARGETS</div><div class="gmail_msg">  AArch64</div><div class="gmail_msg">  AMDGPU</div><div class="gmail_msg">  ARM</div><div class="gmail_msg">  BPF</div><div class="gmail_msg">  Hexagon</div><div class="gmail_msg">  Mips</div><div class="gmail_msg">  MSP430</div><div class="gmail_msg">  NVPTX</div><div class="gmail_msg">  PowerPC</div><div class="gmail_msg">  Sparc</div><div class="gmail_msg">  SystemZ</div><div class="gmail_msg">  X86</div><div class="gmail_msg">  XCore</div><div class="gmail_msg">  )</div><div class="gmail_msg"><br class="gmail_msg"></div>but not like<p style="margin-top:0px;margin-bottom:0px" class="gmail_msg"></p><p style="margin-top:0px;margin-bottom:0px" class="gmail_msg"> </p><p style="margin-top:0px;margin-bottom:0px" class="gmail_msg"></p><div class="gmail_msg">set(LLVM_ALL_TARGETS</div><div class="gmail_msg">  AArch64</div><div class="gmail_msg">  AMDGPU</div><div class="gmail_msg">  ARM</div><div class="gmail_msg">  BPF</div><div class="gmail_msg">  Hexagon</div><div class="gmail_msg">  Mips</div><div class="gmail_msg">  MSP430</div><div class="gmail_msg">  NVPTX</div><div class="gmail_msg">  PowerPC</div><div class="gmail_msg">  Sparc</div><div class="gmail_msg">  SystemZ </div><div class="gmail_msg">  Webassembly</div><div class="gmail_msg">  X86</div><div class="gmail_msg">  XCore</div><div class="gmail_msg">  )</div><div style="margin-top:0px;margin-bottom:0px" class="gmail_msg"><br class="gmail_msg"></div>?<p style="margin-top:0px;margin-bottom:0px" class="gmail_msg"></p><div style="margin-top:0px;margin-bottom:0px" class="gmail_msg">Is WebAssembly work state now in LLVM or not?</div><div style="margin-top:0px;margin-bottom:0px" class="gmail_msg">Thank you.</div><div style="margin-top:0px;margin-bottom:0px" class="gmail_msg"><br class="gmail_msg"></div></div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="gmail_msg">_______________________________________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="gmail_msg"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="gmail_msg">LLVM Developers mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="gmail_msg"><a href="mailto:llvm-dev@lists.llvm.org" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="gmail_msg" target="_blank">llvm-dev@lists.llvm.org</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="gmail_msg"><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></div></blockquote></div><br class="gmail_msg"></div></div>_______________________________________________<br class="gmail_msg">
LLVM Developers mailing list<br class="gmail_msg">
<a href="mailto:llvm-dev@lists.llvm.org" class="gmail_msg" target="_blank">llvm-dev@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="gmail_msg">
</blockquote></div>