Setting cxxflags for intel compiler

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting cxxflags for intel compiler

Boost - Users mailing list
Hi,

in order to compile boost I need to tell the intel compiler which gcc
version to use. I am trying to achive this with a user-config.jam

using intel-linux : icpc : <cxxflags> -gcc-name=gcc-7 -gxx-name=g++-7 ;

But none of the flags appear in the compile log. Which syntax am I
supposed to use to get them working?

Regards,
Simon
_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: Setting cxxflags for intel compiler

Boost - Users mailing list
AMDG

On 08/23/2018 12:42 AM, Michalke, Simon via Boost-users wrote:
> in order to compile boost I need to tell the intel compiler which gcc
> version to use. I am trying to achive this with a user-config.jam
>
> using intel-linux : icpc : <cxxflags> -gcc-name=gcc-7 -gxx-name=g++-7 ;
>
> But none of the flags appear in the compile log. Which syntax am I
> supposed to use to get them working?
>
As you wrote it, the option is not associated with cxxflags
and is ignored.  The option needs to be part of the same
string as <cxxflags> like this:

<cxxflags>"-gcc-name=gcc-7 -gxx-name=g++7"

In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: Setting cxxflags for intel compiler

Boost - Users mailing list


> -----Original Message-----
> From: Boost-users [mailto:[hidden email]] On Behalf Of Steven Watanabe via Boost-users
> Sent: 23 August 2018 15:21
> To: Michalke, Simon via Boost-users
> Cc: Steven Watanabe
> Subject: Re: [Boost-users] Setting cxxflags for intel compiler
>
> AMDG
>
> On 08/23/2018 12:42 AM, Michalke, Simon via Boost-users wrote:
> > in order to compile boost I need to tell the intel compiler which gcc
> > version to use. I am trying to achive this with a user-config.jam
> >
> > using intel-linux : icpc : <cxxflags> -gcc-name=gcc-7 -gxx-name=g++-7 ;
> >
> > But none of the flags appear in the compile log. Which syntax am I
> > supposed to use to get them working?
> >
> As you wrote it, the option is not associated with cxxflags
> and is ignored.  The option needs to be part of the same
> string as <cxxflags> like this:
>
> <cxxflags>"-gcc-name=gcc-7 -gxx-name=g++7"

The use of significant space is bjam /b2 is most unfortunate, but we have it.

But users, including me, despite knowing this, are further confused by bjam silently ignoring anything not understood.

It would be very helpful if some warnings could be given?

Paul


_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users