<div dir="ltr"><div>Onnx-mlir is another example of an upstream MLIR project linking against the LLVM build directory.</div><div dir="ltr"><a href="https://github.com/onnx/onnx-mlir">https://github.com/onnx/onnx-mlir</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 10, 2020 at 1:04 AM Renato Golin 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Hi Steve, </div><div dir="auto"><br></div><div dir="auto">Thanks for the update! This will fix the ugliest hack I have on my build script.</div><div dir="auto"><br></div><div dir="auto">I know I wasn't doing the nicest thing, but it's nice to see that what I needed wasn't that far away. </div><div dir="auto"><br></div><div dir="auto">I'll update my scripts and get back to you. </div><div dir="auto"><br></div><div dir="auto">Really appreciate, thanks! </div><div dir="auto">Renato <br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, 10 Jul 2020, 07:59 Stephen Neuendorffer, <<a href="mailto:stephen.neuendorffer@gmail.com" target="_blank">stephen.neuendorffer@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Renato,<div><br></div><div>After looking at your testcase, it seems that you're trying to relocate a 'build' directory and are having to rewrite absolute paths in the build directory.</div><div>Build directories are not really relocatable, partly because of absolute paths, and partly because of dealing with shared library rpaths IIRC.  I tried your testcase</div><div>with an install directory and it seems to work (at least for the MLIR parts) even if the install directory is relocated. This is because a different set of cmake exports</div><div>are generated for install directories.  Also note also that MLIR does install the .inc files generated by tablegen for this to work.</div><div><br></div><div>Steve</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 9, 2020 at 7:51 AM Stephen Neuendorffer <<a href="mailto:stephen.neuendorffer@gmail.com" rel="noreferrer" target="_blank">stephen.neuendorffer@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto">Renato, I'm happy to kibitz on the build problems.  Cmake seems to be working well at this point for us, but it took quite a bit to get there and there are some pitfalls. I'm aware of some namespace issues in mlir, but haven't gotten around to dealing with them.  <div dir="auto"><br></div><div dir="auto">Steve</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 9, 2020, 3:47 AM Renato Golin <<a href="mailto:rengolin@gmail.com" rel="noreferrer" target="_blank">rengolin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Wed, 8 Jul 2020 at 22:43, Chris Lattner <<a href="mailto:clattner@nondot.org" rel="noreferrer noreferrer" target="_blank">clattner@nondot.org</a>> wrote:<br>
> I think that flang beat us to the punch as the first external MLIR user :-) but thank you for your support Renato!<br>
<br>
Ah, but Flang is in the monorepo and builds together with LLVM, while<br>
CIRCT (and my current project, Verona) "uses" MLIR/LLVM externally (as<br>
a submodule).<br>
<br>
There are a number of build issues in both LLVM and MLIR that make it<br>
awkward for projects in that category to use the LLVM libraries and<br>
having a project in the llvm group will give us an "official" reason<br>
to solve those problems more efficiently.<br>
<br>
I've been meaning to start a thread on that, but I need to collect all<br>
the build issues I had in an email so we can discuss them. Not for<br>
this thread, though. :)<br>
<br>
cheers,<br>
--renato<br>
</blockquote></div>
</blockquote></div>
</blockquote></div></div></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>