Friday, September 10, 2021

Digest for comp.lang.c++@googlegroups.com - 1 update in 1 topic

Ian Collins <ian-news@hotmail.com>: Sep 11 11:20AM +1200

On 11/09/2021 00:41, Michael S wrote:
> many but not all of their source code.
> "vice versa" is simply dangerous and IMHO a sure pass to wasting endless hours
> due to stupid human mistakes.
 
Higher level build tools like premake (which I know well) are ideal for
these situations. You can build on a base set of rules (use clang with
these options for naive, gcc with those option for ARM cross-compile
etc.) with specific rules, such as for this platform, exclude these
files, for some code if required. This removes the need to add
conditional compilation directive into the source code.
 
With these tools, you also get a single flat makefile (or ninja file for
cross platform including Windows) which is ideal for parallel and
distributed building.
 
--
Ian
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: