Boost logo

Boost-Build :

Subject: [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-10-29 11:05:49


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

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 ;

-- 
    .~.     In my life God comes first....
    /V\         but Linux is pretty high after that :-D
   /( )\    Francis (Grizzly) Smit
   ^^-^^    http://www.smit.id.au/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GM/CS/H/P/S/IT/L d- s+:+ a++ C++++ UL++++$ P++ L+++$ E--- W++
N W--- M-- V-- PE- PGP t+ 5-- X-- R- tv b++++ D-
G e++ h+ y?
------END GEEK CODE BLOCK------
http://www.geekcode.com/

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