diff --git a/boost_build_v2.html b/boost_build_v2.html index 57b50c25e..762a50850 100644 --- a/boost_build_v2.html +++ b/boost_build_v2.html @@ -22,12 +22,12 @@ div.alert { color: red } table { align: center; border: thin; } - + + - build request, build request expansion and directly requested targets + - conditional properties + -->

bjam there. A simple application will be built. You can also play with other projects in examples-v2. + it somewhere. + +

It is slighly better way is to copy new/user-config.jam + into one of the locations where it can be found (given in this table). This prevent you from + accidentally overwriting your config when updating.

--> @@ -647,7 +647,8 @@ boost-build /path/to/boost.build ; The feature which combines several low-level features in order to make building most common variants simple. -

Allowed values: debug, release

+

Allowed values: debug, release, + profile

The value debug expands to

@@ -658,6 +659,12 @@ boost-build /path/to/boost.build ;
         

The value release expands to

 <optimization>speed <debug-symbols>off <inlining>full <runtime-debugging>off
+
+ +

The value profile expands to the same as + release, plus:

+
+<profiling>on <debug-symbols>on
 

Rationale: Runtime debugging is on in debug build so suit diff --git a/gcc.jam b/gcc.jam index d90e6f86b..5be0314bc 100644 --- a/gcc.jam +++ b/gcc.jam @@ -66,6 +66,8 @@ flags gcc.compile OPTIONS on : -Wno-inline ; flags gcc.compile OPTIONS full : -finline-functions -Wno-inline ; flags gcc.compile OPTIONS on : -g ; +flags gcc.compile OPTIONS on : -pg ; + flags gcc.compile OPTIONS ; flags gcc.compile DEFINES ; flags gcc.compile INCLUDES ; @@ -77,6 +79,7 @@ actions compile # Declare flags and action for linking flags gcc.link OPTIONS on : -g ; +flags gcc.link OPTIONS on : -pg ; flags gcc.link OPTIONS ; flags gcc.link LINKPATH ; flags gcc.link FINDLIBS-ST ; @@ -105,6 +108,7 @@ actions piecemeal archive # Declare flags and action for linking shared libraries flags gcc.link-dll OPTIONS on : -g ; +flags gcc.link-dll OPTIONS on : -pg ; flags gcc.link-dll OPTIONS ; flags gcc.link-dll LINKPATH ; flags gcc.link-dll FINDLIBS-ST ; diff --git a/src/tools/builtin.jam b/src/tools/builtin.jam index f220cf493..0f6a38d40 100644 --- a/src/tools/builtin.jam +++ b/src/tools/builtin.jam @@ -37,6 +37,7 @@ feature runtime-debugging : on off : propagated ; feature optimization : off speed space : propagated ; +feature profiling : off on : propagated ; feature inlining : off on full : propagated ; feature threading : single multi : link-incompatible propagated ; @@ -142,6 +143,7 @@ IMPORT $(__name__) : variant : : variant ; variant debug : off on off on ; variant release : speed off full off ; +variant profile : release : on on ; # When speed is specified, we need to add NDEBUG # It is done via 'active' features, because it should be done for