Is there a way to specify a minimum GCC version?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a way to specify a minimum GCC version?

Boost - Build mailing list
Hi,
I'd like to specify a minimum gcc version rather than an exact version. Is that possible?

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 ;  

Thanks,
Uri

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to specify a minimum GCC version?

Boost - Build mailing list
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 ;

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build