It turns out that there's a flag you can pass to CMake to tell LLVM to use a separate copy of llvm-tblgen.
LLD isn't working in the browser for other reasons (threading, for one), but thanks for your help! Carter On Tuesday, June 17, 2014 11:43:42 AM UTC-7, Alon Zakai wrote: > > See "Build System Self-Execution" in > https://github.com/kripken/emscripten/wiki/Building-Projects , you will > need to build natively first, then copy in the native versions. > > - Alon > > > > On Mon, Jun 16, 2014 at 11:15 PM, <[email protected] <javascript:>> > wrote: > >> I'm trying to use Emscripten to cross-compile the LLVM linker >> <http://lld.llvm.org/> to Javascript. However, make tries to compile a >> utility called "llvm-tblgen" and run it as part of the build process. >> Since emcc generates LLVM bitcode that can't directly be executed by the >> system, this fails. >> >> I'm not very familiar with CMake, so I'm not sure how to proceed. How >> can I get lld to compile under Emscripten? >> >> >> Carter >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
