----- Original Message -----
> On the other hand, if the build system automatically prioritized
> .cpp dependencies ahead of .h dependencies and just automatically
> built the things most likely to break first, I wouldn't have to
> worry about this at all.

I'd be satisfied with that as well.

> Strawman idea: add support for:
> 
>   mach check-syntax <directory>...
> 
> which runs the compiler with -fsyntax-only (GCCish) or /Zs (MSVC)
> on the source files in the given directory(ies).

Based on what I can understand from the documentation, -fsyntax-only won't do 
typechecking, which is usually the most important thing.

One thing I think that's lacking in this discussion is an understanding of why 
removing support for "mach build <subdirectory>" helps the build system. What 
are the difficult parts of supporting that functionality? Basic tasks like 
compiling C++ and preprocessing JS don't seem like they'd be all that hard to 
implement on a per-directory basis, so I don't understand why anyone would want 
to remove them.

If the goal is just to remove some weird corner case, then maybe we could all 
agree that few people care about that aspect and move on.

-Bill
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to