<div dir="ltr">Hello ,<div><br></div><div>I am following <a href="http://llvm.org/docs/WritingAnLLVMPass.html">http://llvm.org/docs/WritingAnLLVMPass.html</a> this to build a simple pass with in the source tree.</div><div><br></div><div>When I try to run make command on my pass directory. I am getting following error:</div><div><p style="margin:0px;font-size:14px;line-height:normal;font-family:Monaco;color:rgb(235,235,235);background-color:rgb(0,0,0)">../../../Makefile.common:60: ../../../Makefile.config: No such file or directory</p>
<p style="margin:0px;font-size:14px;line-height:normal;font-family:Monaco;color:rgb(235,235,235);background-color:rgb(0,0,0)">../../../Makefile.common:68: /Makefile.rules: No such file or directory</p>
<p style="margin:0px;font-size:14px;line-height:normal;font-family:Monaco;color:rgb(235,235,235);background-color:rgb(0,0,0)">make: *** No rule to make target `/Makefile.rules'.  Stop.</p><div><br></div><div>But I think this common as I have not run ./configure on my source tree. When I try to run ./configure on my LLVM source tree I am getting following error:</div><div><p style="margin:0px;font-size:14px;line-height:normal;font-family:Monaco;color:rgb(235,235,235);background-color:rgb(0,0,0)">configure: error: In-source builds are not allowed. Please configure from a separate build directory!</p></div><div><br></div><div>Now I build LLVM with separate source directory and put my pass directory inside of my build tree. Then I run make it builds successfully. opt is able to load my pass correctly.</div><div>But here my question is " <b>Is this a correct way to build the pass ?</b>" and if In-source builds are not allowed then <a href="http://llvm.org/docs/WritingAnLLVMPass.html">http://llvm.org/docs/WritingAnLLVMPass.html</a> needs to be updated.<br></div></div><div><br></div><div>Please guide !</div><div><br></div><div>--</div><div><br><div class="gmail_signature"><div dir="ltr"><b>Vivek Pandya</b><div><br></div></div></div>
</div></div>