On 10/29/12 5:52 PM, Robert O'Callahan wrote:
On Tue, Oct 30, 2012 at 1:13 PM, Nicholas Nethercote <n.netherc...@gmail.com
wrote:
"#pragma once does have one drawback (other than being non-standard)
and that is if you have the same file in different locations (we have
this because our build system copies files around) then the compiler
will think these are different files"
Is that a problem for Mozilla code?
It could be. On Windows files get copied from the source directory to
dist/include. So it seems to me that if "." is on the include path before
dist/include, it would be easy for some files to be included twice.
In my ideal world, all include paths (actually, all paths given to the
compiler) are absolute, not relative. This is ideal because it saves the
build system from requiring execution within a specific directory. This
simplifies implementation and avoids ambiguity. It also has the nice
side-effect that you can execute compiler commands from anywhere and it
just works.
So, if part of this transition is normalizing all include paths to
absolute paths, +1 from me.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform