diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index dd55b8c..a407143 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -66,10 +66,9 @@ explicit WinDbgCached ; rule build-stacktrace-noop ( props * ) { local enabled = [ property.select : $(props) ] ; - switch $(enabled:G=) + if $(enabled:G=) = "off" { - case "on" : return ; - case "off" : return no ; + return no ; } } @@ -79,7 +78,6 @@ lib boost_stacktrace_noop : # requirements all shared:BOOST_STACKTRACE_DYN_LINK=1 - # Enable build when explicitly requested @build-stacktrace-noop : # default build : # usage-requirements @@ -90,10 +88,9 @@ lib boost_stacktrace_noop rule build-stacktrace-backtrace ( props * ) { local enabled = [ property.select : $(props) ] ; - switch $(enabled:G=) + if $(enabled:G=) = "off" { - case "on" : return ; - case "off" : return no ; + return no ; } } @@ -105,8 +102,8 @@ lib boost_stacktrace_backtrace linux:dl backtrace shared:BOOST_STACKTRACE_DYN_LINK=1 - [ check-target-builds libbacktrace : : no ] @build-stacktrace-backtrace + [ check-target-builds libbacktrace : : no ] : # default build : # usage-requirements #shared:BOOST_STACKTRACE_DYN_LINK=1 @@ -116,10 +113,9 @@ lib boost_stacktrace_backtrace rule build-stacktrace-addr2line ( props * ) { local enabled = [ property.select : $(props) ] ; - switch $(enabled:G=) + if $(enabled:G=) = "off" { - case "on" : return ; - case "off" : return no ; + return no ; } # Disable by default on Windows when not using Cygwin @@ -136,8 +132,8 @@ lib boost_stacktrace_addr2line all linux:dl shared:BOOST_STACKTRACE_DYN_LINK=1 - [ check-target-builds addr2line : : no ] @build-stacktrace-addr2line + [ check-target-builds addr2line : : no ] : # default build : # usage-requirements #shared:BOOST_STACKTRACE_DYN_LINK=1 @@ -147,10 +143,9 @@ lib boost_stacktrace_addr2line rule build-stacktrace-basic ( props * ) { local enabled = [ property.select : $(props) ] ; - switch $(enabled:G=) + if $(enabled:G=) = "off" { - case "on" : return ; - case "off" : return no ; + return no ; } } @@ -161,8 +156,8 @@ lib boost_stacktrace_basic all linux:dl shared:BOOST_STACKTRACE_DYN_LINK=1 - [ check-target-builds WinDbg : no ] @build-stacktrace-basic + [ check-target-builds WinDbg : no ] : # default build : # usage-requirements #shared:BOOST_STACKTRACE_DYN_LINK=1 @@ -172,10 +167,9 @@ lib boost_stacktrace_basic rule build-stacktrace-windbg ( props * ) { local enabled = [ property.select : $(props) ] ; - switch $(enabled:G=) + if $(enabled:G=) = "off" { - case "on" : return ; - case "off" : return no ; + return no ; } } @@ -186,8 +180,8 @@ lib boost_stacktrace_windbg all Dbgeng ole32 shared:BOOST_STACKTRACE_DYN_LINK=1 - [ check-target-builds WinDbg : : no ] @build-stacktrace-windbg + [ check-target-builds WinDbg : : no ] : # default build : # usage-requirements #shared:BOOST_STACKTRACE_DYN_LINK=1 @@ -197,10 +191,9 @@ lib boost_stacktrace_windbg rule build-stacktrace-windbg-cached ( props * ) { local enabled = [ property.select : $(props) ] ; - switch $(enabled:G=) + if $(enabled:G=) = "off" { - case "on" : return ; - case "off" : return no ; + return no ; } } @@ -211,8 +204,8 @@ lib boost_stacktrace_windbg_cached all Dbgeng ole32 shared:BOOST_STACKTRACE_DYN_LINK=1 - [ check-target-builds WinDbgCached : : no ] @build-stacktrace-windbg-cached + [ check-target-builds WinDbgCached : : no ] : # default build : # usage-requirements #shared:BOOST_STACKTRACE_DYN_LINK=1 @@ -222,10 +215,9 @@ lib boost_stacktrace_windbg_cached rule build-stacktrace-from-exception ( props * ) { local enabled = [ property.select : $(props) ] ; - switch $(enabled:G=) + if $(enabled:G=) = "off" { - case "on" : return ; - case "off" : return no ; + return no ; } local arch = [ property.select : $(props) ] ; @@ -244,9 +236,6 @@ lib boost_stacktrace_from_exception # Enable build when explicitly requested, or by default, when on x86 @build-stacktrace-from-exception - - # Require usable libbacktrace on other platforms - # [ check-target-builds libbacktrace : : no ] : # default build : # usage-requirements #shared:BOOST_STACKTRACE_DYN_LINK=1