Boost logo

Boost-Build :

From: Edward Diener (eldiener_at_[hidden])
Date: 2020-10-31 20:26:33


On 10/29/2020 3:07 PM, Uri Moszkowicz via Boost-build wrote:
> Hi,
> I'd like to specify a minimum gcc version rather than an exact version.
> Is that possible?

You can use predef-check from the predef library to work with minimum
compiler versions, ie compiler version comparisons, in Boost Build.

>
> I know this works:
>   exe myExe : src1.cc src2.cc :
> <toolset-gcc:min-version>6.0.0:<define>DEFINE1 ;
> And also this:
>   exe myExe : src1.cc src2.cc : <toolset>gcc-6.0.0:<define>DEFINE1 ;
>
> What I'd like:
>   exe myExe : src1.cc src2.cc :
> <toolset-gcc:min-version>6.0.0:<define>DEFINE1 ;
> Or
>   exe myExe : src1.cc src2.cc : <min-toolset>gcc-6.0.0:<define>DEFINE1 ;


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