[LLVMdev] building LLVM with just the C backend
sabre at nondot.org
Sun Dec 16 13:04:05 PST 2007
On Dec 13, 2007, at 2:37 AM, Jay Foad wrote:
> I tried building LLVM 2.1 with no real target CPU backends enabled,
> just the
> C backend, by hacking the configure script slightly:
> --- /home/foad/llvm/llvm-2.1/configure 2007-09-17
> 22:37:52.000000000 +0100
> +++ configure 2007-12-13 10:29:41.000000000 +0000
> @@ -4762,7 +4762,7 @@
> -TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
> It didn't work. I get these link failures:
> Is this something that ought to work? Any idea how to go about
> fixing it?
I don't really know, however, things are slightly different on
mainline now. Now if you use --enable-targets=cbe you should just get
the C backend without anything else, including the MSIL target.
I haven't tried it, but it should work :)
More information about the llvm-dev