|
Boost-Build : |
Subject: Re: [Boost-build] how do I get the equivalent of b2 toolset=gcc toolset=clang variant=debug variant=release in my Jam file
From: Francis (Grizzly) Smit (grizzly_at_[hidden])
Date: 2015-11-04 19:39:35
On 30/10/15 02:05, Francis (Grizzly) Smit wrote:
> hi I want to put those parameters in the jamfile I've tried
>
> using gcc ;
>
>
> using clang ;
>
> but only gcc got generated
>
> I have also tried to put <variant>debug <variant>release in the
> project rule
> but it did not work!! can this be done?? I really don't want
> <variant>debug <variant>release on every exe
> since I always want it so it would be better globally hence my
> attempts to put it in the project
>
> the reason I want this is because I am testing C++1z support so I want
> to compare gcc and clang
>
>
>
partially solved it:
my jamroot file now looks like
my jamroot.jam file looks like
project testing
: requirements <cflags>-std=c++1z <cflags>-Wall
;
#using gcc ;
#using clang ;
#exe hello : hello.cpp factorial.cpp : <variant>debug <variant>release ;
#exe hello : main.cpp hello.cpp factorial.cpp : <cxxflags>-std=c++1z ;
exe hello : main.cpp hello.cpp factorial.cpp : : <variant>debug
<variant>release ;
exe t : t.cpp : : <variant>debug <variant>release ;
exe t2 : t2.cpp : : <variant>debug <variant>release ;
exe sysclock : sysclock.cpp : : <variant>debug <variant>release ;
exe steadyclock : steadyclock.cpp : : <variant>debug <variant>release ;
exe localname : localname.cpp : : <variant>debug <variant>release ;
exe localsel : localsel.cpp : : <variant>debug <variant>release ;
exe localeeq : localeeq.cpp : : <variant>debug <variant>release ;
exe limits : limits.cpp : : <variant>debug <variant>release ;
exe valarray : valarray.cpp : : <variant>debug <variant>release ;
exe nextafter : nextafter.cpp : : <variant>debug <variant>release ;
exe get_money : get_money.cpp : : <variant>debug <variant>release ;
exe get_time : get_time.cpp : : <variant>debug <variant>release ;
exe utf8 : utf8.cpp : : <variant>debug <variant>release ;
exe time_get : time_get.cpp : : <variant>debug <variant>release ;
so now I jsut need:
b2 toolset=gcc toolset=clang
anyone know how I can put the toolset specs for both in the jam file
using only give me the first one
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