2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00

Only use '-G 0' if we also have '-O 0'

This commit is contained in:
Justin LaPolla
2018-02-07 10:21:12 -06:00
parent d80b2833d6
commit a91f11b527

View File

@@ -791,13 +791,13 @@ rule set-debug-symbols-procedure ( targets * : sources * : properties * )
{
local optimization = [ feature.get-values <optimization> : $(properties) ] ;
local debug-option = ;
if $(optimization) = speed
if $(optimization) = off
{
debug-option = 3 ;
debug-option = 0 ;
}
else
{
debug-option = 0 ;
debug-option = 3 ;
}
local space = " " ;