Boost logo

Boost-Build :

Subject: [Boost-build] Compiling with -O0 with <release>debug and <toolset>clang-darwin
From: chris.schaf_at_[hidden]
Date: 2013-10-13 13:40:09

How can I get boost-build to compile with -O0 using
<toolset>clang-darwin and <release>debug.
Currently as shown below there is still a "-O1" option in the compile
command and I'm afraid that it is the reason why I can't print local
variables when I debug the executable with "lldb".

bjam -j1 toolset=clang-darwin bundle debug -n

    "clang++" -x c++ -O0 -g -O1 -Warray-bounds -Wframe-larger-than=16
    -Wlarger-than=4 -Wno-deprecated-register -std=c++11 -stdlib=libc++
    -O0 -fno-inline -Wall -g -DDEBUG_ASSERTS -DDEBUG_MPS -DEXPAT
    -I"../../src" -I"../../src/core"
    -c -o "../../src/core/bin/clang-darwin-darwin/debug/stringList.o"

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at