Torgny Andersson
2010-Nov-17 13:28 UTC
[LLVMdev] Building a backend outside the LLVM source tree
Hi! I'm trying to build a backend outside the LLVM source tree. My directory structure is as follows: llvm -- the root of the LLVM source tree llvm/lib/Target -- where the standard backends are stored (Sparc, etc). my_dir/my_backend -- where I store the backend I'm writing. I've been fiddeling with the variables documented in the llvm/Makefile.common (LEVEL, LLVM_SRC_ROOT, PROJ_SRC_DIR, etc) but without success. Is what I'm trying to do possible with the LLVM buildsystem? If so, how? Thank you! / Torgny -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101117/6de0f0ad/attachment.html>
Pedro Ferreria
2010-Nov-17 16:15 UTC
[LLVMdev] Building a backend outside the LLVM source tree
On 17/11/10 13:28, Torgny Andersson wrote:> Hi! > I'm trying to build a backend outside the LLVM source tree. My > directory structure is as follows: > llvm -- the root of the LLVM source tree > llvm/lib/Target -- where the standard backends are stored (Sparc, etc). > my_dir/my_backend -- where I store the backend I'm writing. > > I've been fiddeling with the variables documented in the > llvm/Makefile.common (LEVEL, LLVM_SRC_ROOT, PROJ_SRC_DIR, etc) but > without success. Is what I'm trying to do possible with the LLVM > buildsystem? If so, how? > > Thank you! > > / Torgny > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdevYou don't need to change the makefiles. Simply update the configure script as explained here http://llvm.org/docs/WritingAnLLVMBackend.html#Preliminaries Have your backend's folder live in llvm/lib/Target/ with the others. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101117/03b9f1cb/attachment.html>