Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to determine compiler for configure/make
From: Vladimir Prus (ghost_at_[hidden])
Date: 2013-09-25 02:58:15

On 21.09.2013 03:29, Brendan Hanna wrote:
> I am trying to use boost build to build an external package and generate a library that I can then link to. The external package is built
> using the tradition configure/make/make install steps. I am running these steps using a make rule referring to a hand written action
> I am cross compiling on x86 cygwin to a number of toolsets - gcc-cywin, gcc-arm-linux and another. In order to correctly build the external
> library, I need to supply the compiler path to the call to configure in my handwritten action.
> So my question is, how do I correctly determine the compiler used for the current build and set it in a way that may be used for my hand
> written action so that it may be passed through to configure?


I am not sure there's exactly easy way to do this. If you're always using gcc, you might want to invoke

        toolset.set-target-variables gcc.compile $(targets) : $(property-set) ;

in your rule, and then use CONFIG_COMMAND in the action block - which will point to full path to gcc comipler.

- Volodya

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at