From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-06-03 11:59:02
On Thu, Jun 02, 2005 at 11:48:03AM +0400, Vladimir Prus wrote:
> > > + if $(JAMUNAME) < "8.0.0" || [ MATCH "(g[+][+]-3.3)" : $(command)
Although this works, now that I think about this, I don't
really like this solution. I don't like using JAMUNAME in this
case. We are looking for a property of the tool....the fact
that we can deduce this property by looking at the UNAME version
is just luck, and may break if people try to use another combination
of OS and compiler.
Can we determine the version of gcc by examining the output of:
and make the decision based on that?
I don't know the Jam syntax, but I want to do something like:
GCCVERSION = `gcc -dumpversion` ;
if $(GCCVERSION) < "4.0.0"
flags darwin.compile.c++ OPTIONS : -fcoalesce-templates ;
What is the correct Jam syntax to do this?
-- Craig Rodrigues rodrigc_at_[hidden]
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk