[LLVMdev] How to avoid include the same source-file more than once?
geovanisouza92 at gmail.com
geovanisouza92 at gmail.com
Fri Mar 9 06:14:50 PST 2012
How can I avoid include the same source-file more than once or the
different files with the same content, when all files will be merged in
only one binary file?
Let me clear this: In my programming language project, two classes with the
same names will be merged, not generating a semantic error or whatever.
Isn't a bug, is a feature. :o)
E.g.
## file1.arc
include "base.arc"
## file2.arc
include "base.arc"
I don't want use C/C++-like style guard or similar.
I think about an list of complete path of each file inside the compiler, or
an checksum, generated over the bytes of file, like git index does.
--
@geovanisouza92 - Geovani de Souza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120309/28e629aa/attachment.html>
More information about the llvm-dev
mailing list