[LLVMdev] Multiple directories in a single library

Matthijs Kooijman
Mon, 01 Dec 2008 13:56:01 -0000

Hi Anton,

> The main reason of such split was codesize concerns for JIT users:
> they don't need asmprinting at all. The ugly include paths hacks were
> due to current lack of possibility to "export private headers".
Ah, I suspected as much.

> > Anyway, I thought it would be good if one could simply compile .cpp
files in
> > subdirectories as if they are in the current directory, without a
makefile in
> > the subdirectory. These cpp files would end up in the library as
defined by
> > the parent directory's Makefile.
> Then, this again "merges" asmprinters into whole target library,
right?
If you would use the EXTRA_SOURCES for the AsmPrinter dir, then yes. But there
is nothing to stop you from keeping AsmPrinter in DIRS with its own makefile,
and putting other dirs in EXTRA_SOURCES.

Gr.

Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20081201/a66af5e4/attachment.sig>