Support for different compilers
Dave Pointon
dpointo8 at linux.vnet.ibm.com
Tue Feb 4 12:46:38 UTC 2014
On Mon, 2014-02-03 at 16:43 +1000, David Holmes wrote:
> Hi Martin,
>
> On 1/02/2014 4:30 AM, Martin Buchholz wrote:
> > In practice, every compiler defines preprocessor symbols that allow
> > conditional compilation based on compiler type. So there's not much value
> > in having configure define yet another "compiler family" variable, or at
> > least not useful within the C/C++ code itself.
>
> On the contrary! We want to isolate compiler idiosyncracies to the
> makefiles/build-system NOT the sources. Compiler based ifdefs should be
> an absolute last resort in my opinion.
>
> David
> -----
<snip>
I agree - rushes off to re-inspect local code changes to ensure that
I've not contravened the assertion/requirement ...
--
Dave Pointon FIAP MBCS
Now I saw, tho' too late, the folly of beginning a work before we count
the cost and before we we judge rightly of our strength to go thro'
with it - Robinson Crusoe
More information about the build-dev
mailing list