mirror of
https://github.com/boostorg/build.git
synced 2026-02-21 15:02:19 +00:00
Add minimal and debug optimization options.
This commit is contained in:
@@ -45,6 +45,7 @@ toolset.inherit-rules emscripten : gcc ;
|
||||
toolset.inherit-flags emscripten : gcc
|
||||
:
|
||||
<optimization>off <optimization>speed <optimization>space
|
||||
<optimization>minimal <optimization>debug
|
||||
<profiling>off <profiling>on
|
||||
<debug-symbols>off <debug-symbols>on
|
||||
<rtti>off <rtti>on
|
||||
|
||||
@@ -8,7 +8,7 @@ import feature ;
|
||||
#| tag::doc[]
|
||||
|
||||
[[bbv2.builtin.features.optimization]]`optimization`::
|
||||
*Allowed values:* `off`, `speed`, `space`.
|
||||
*Allowed values:* `off`, `speed`, `space`, 'minimal', 'debug'.
|
||||
+
|
||||
Enables optimization. `speed` optimizes for faster code, `space` optimizes for
|
||||
smaller binary.
|
||||
@@ -16,7 +16,7 @@ smaller binary.
|
||||
|# # end::doc[]
|
||||
|
||||
feature.feature optimization
|
||||
: off speed space
|
||||
: off speed space minimal debug
|
||||
: propagated ;
|
||||
|
||||
#| tag::inline-doc[]
|
||||
|
||||
@@ -626,6 +626,8 @@ actions compile.c.pch
|
||||
toolset.flags gcc.compile OPTIONS <optimization>off : -O0 ;
|
||||
toolset.flags gcc.compile OPTIONS <optimization>speed : -O3 ;
|
||||
toolset.flags gcc.compile OPTIONS <optimization>space : -Os ;
|
||||
toolset.flags gcc.compile OPTIONS <optimization>minimal : -O1 ;
|
||||
toolset.flags gcc.compile OPTIONS <optimization>debug : -Og ;
|
||||
|
||||
toolset.flags gcc.compile OPTIONS <inlining>off : -fno-inline ;
|
||||
toolset.flags gcc.compile OPTIONS <inlining>on : -Wno-inline ;
|
||||
|
||||
@@ -31,6 +31,7 @@ generators.override intel-darwin.searched-lib-generator : searched-lib-generator
|
||||
toolset.inherit-rules intel-darwin : gcc ;
|
||||
toolset.inherit-flags intel-darwin : gcc
|
||||
: <inlining>off <inlining>on <inlining>full <optimization>space
|
||||
<optimization>minimal <optimization>debug
|
||||
<warnings>off <warnings>all <warnings>on
|
||||
<warnings>extra <warnings>pedantic
|
||||
<warnings-as-errors>off <warnings-as-errors>on
|
||||
|
||||
@@ -38,6 +38,7 @@ toolset.inherit-rules intel-linux : gcc ;
|
||||
toolset.inherit-flags intel-linux : gcc
|
||||
: <inlining>off <inlining>on <inlining>full
|
||||
<optimization>space <optimization>speed
|
||||
<optimization>minimal <optimization>debug
|
||||
<warnings>off <warnings>all <warnings>on
|
||||
<warnings>extra <warnings>pedantic
|
||||
<warnings-as-errors>off <warnings-as-errors>on
|
||||
|
||||
@@ -30,6 +30,7 @@ generators.override intel-vxworks.searched-lib-generator : searched-lib-generato
|
||||
toolset.inherit-rules intel-vxworks : gcc ;
|
||||
toolset.inherit-flags intel-vxworks : gcc
|
||||
: <inlining>off <inlining>on <inlining>full <optimization>space
|
||||
<optimization>minimal <optimization>debug
|
||||
<warnings>off <warnings>all <warnings>on
|
||||
<warnings>extra <warnings>pedantic
|
||||
<warnings-as-errors>off <warnings-as-errors>on
|
||||
|
||||
Reference in New Issue
Block a user