mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
Introduce 'profile' variant.
[SVN r18509]
This commit is contained in:
@@ -22,12 +22,12 @@
|
||||
div.alert { color: red }
|
||||
table { align: center; border: thin; }
|
||||
|
||||
</style>
|
||||
</style>
|
||||
</head>
|
||||
<!-- Things yet to document:
|
||||
- build request, build request expansion and directly requested targets
|
||||
- conditional properties
|
||||
-->
|
||||
- build request, build request expansion and directly requested targets
|
||||
- conditional properties
|
||||
-->
|
||||
|
||||
<body>
|
||||
<p><a href="../../index.htm"><img class="banner" height="86" width="277"
|
||||
@@ -138,12 +138,12 @@
|
||||
<tt>bjam</tt> there. A simple application will be built. You can also
|
||||
play with other projects in <tt>examples-v2</tt>.
|
||||
<!-- This part should not go into intoduction docs, but we need to place
|
||||
it somewhere.
|
||||
|
||||
<p>It is slighly better way is to copy <tt>new/user-config.jam</tt>
|
||||
into one of the locations where it can be found (given in <a href=
|
||||
"#config_files_location">this table</a>). This prevent you from
|
||||
accidentally overwriting your config when updating.</p> -->
|
||||
it somewhere.
|
||||
|
||||
<p>It is slighly better way is to copy <tt>new/user-config.jam</tt>
|
||||
into one of the locations where it can be found (given in <a href=
|
||||
"#config_files_location">this table</a>). This prevent you from
|
||||
accidentally overwriting your config when updating.</p> -->
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
@@ -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.
|
||||
|
||||
<p><b>Allowed values:</b> <tt>debug</tt>, <tt>release</tt></p>
|
||||
<p><b>Allowed values:</b> <tt>debug</tt>, <tt>release</tt>,
|
||||
<tt>profile</tt></p>
|
||||
|
||||
<p>The value <tt>debug</tt> expands to</p>
|
||||
<pre>
|
||||
@@ -658,6 +659,12 @@ boost-build /path/to/boost.build ;
|
||||
<p>The value <tt>release</tt> expands to</p>
|
||||
<pre>
|
||||
<optimization>speed <debug-symbols>off <inlining>full <runtime-debugging>off
|
||||
</pre>
|
||||
|
||||
<p>The value <tt>profile</tt> expands to the same as
|
||||
<tt>release</tt>, plus:</p>
|
||||
<pre>
|
||||
<profiling>on <debug-symbols>on
|
||||
</pre>
|
||||
|
||||
<p><b>Rationale:</b> Runtime debugging is on in debug build so suit
|
||||
|
||||
4
gcc.jam
4
gcc.jam
@@ -66,6 +66,8 @@ flags gcc.compile OPTIONS <inlining>on : -Wno-inline ;
|
||||
flags gcc.compile OPTIONS <inlining>full : -finline-functions -Wno-inline ;
|
||||
|
||||
flags gcc.compile OPTIONS <debug-symbols>on : -g ;
|
||||
flags gcc.compile OPTIONS <profiling>on : -pg ;
|
||||
|
||||
flags gcc.compile OPTIONS <cxxflags> ;
|
||||
flags gcc.compile DEFINES <define> ;
|
||||
flags gcc.compile INCLUDES <include> ;
|
||||
@@ -77,6 +79,7 @@ actions compile
|
||||
|
||||
# Declare flags and action for linking
|
||||
flags gcc.link OPTIONS <debug-symbols>on : -g ;
|
||||
flags gcc.link OPTIONS <profiling>on : -pg ;
|
||||
flags gcc.link OPTIONS <linkflags> ;
|
||||
flags gcc.link LINKPATH <library-path> ;
|
||||
flags gcc.link FINDLIBS-ST <find-static-library> ;
|
||||
@@ -105,6 +108,7 @@ actions piecemeal archive
|
||||
|
||||
# Declare flags and action for linking shared libraries
|
||||
flags gcc.link-dll OPTIONS <debug-symbols>on : -g ;
|
||||
flags gcc.link-dll OPTIONS <profiling>on : -pg ;
|
||||
flags gcc.link-dll OPTIONS <linkflags> ;
|
||||
flags gcc.link-dll LINKPATH <library-path> ;
|
||||
flags gcc.link-dll FINDLIBS-ST <find-static-library> ;
|
||||
|
||||
@@ -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 : <optimization>off <debug-symbols>on <inlining>off <runtime-debugging>on ;
|
||||
variant release : <optimization>speed <debug-symbols>off <inlining>full <runtime-debugging>off ;
|
||||
variant profile : release : <profiling>on <debug-symbols>on ;
|
||||
|
||||
# When <optimization>speed is specified, we need to add <define>NDEBUG
|
||||
# It is done via 'active' features, because it should be done for
|
||||
|
||||
Reference in New Issue
Block a user