|
Boost-Build : |
Subject: Re: [Boost-build] How to build Boost with libc++?
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2017-05-19 23:11:06
On Thu, Apr 27, 2017 at 3:13 AM, Henry Yeh via Boost-build <
boost-build_at_[hidden]> wrote:
> Hi All,
>
> I'm a newbie to Boost, and I want to build boost_1_64_0 against libc++.
> However, it seemed useless to pass flags cxxflags="-stdlib=libc++" and
> linkflags="-stdlib=libc++" as Boost would still end up linking against
> libstdc++.
>
I stuck this in my user-config.jam:
using clang : 11
: "/usr/bin/clang++"
: <cxxflags>"-std=c++11 -stdlib=libc++ -Wno-variadic-macros"
<linkflags>"-stdlib=libc++"
;
and then built with "--toolset=clang-11"
-- Marshall
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk