Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost 1.68.0, clang, windows
From: degski (degski_at_[hidden])
Date: 2018-07-07 03:54:13

On 7 July 2018 at 05:36, JR Cary via Boost-users <
boost-users_at_[hidden]> wrote:

> clang-cl

Somewhere between 1.66 and 1.67, I've built (most) of Boost successfully,
regex failed, but John fixed that almost immediately. As you see, it's
quite dated (you have to update the version numbers everywhere, to make
them correspond to you're setup), as I never bothered with 1.67. But as I
also use Clang/LLVM, I'd like to build a thin-lto instrumented Boost for
use with Clang/LLVM, so a.s.a. 1.68 comes out I'll give it a go.

I used this project-config.jam file:


import option ;

using clang : 6.0 :

  "C:/Program Files/LLVM/bin/clang++.exe" :

  <ranlib>"C:/Program Files/LLVM/bin/llvm-ranlib.exe"
  <archiver>"C:/Program Files/LLVM/bin/llvm-ar.exe"
  <rc>"C:/Program Files (x86)/Windows Kits/10/bin/10.0.16299.0/x64/rc.exe"


  <cxxflags>-Xclang <cxxflags>-flto-visibility-public-std

  <cxxflags>-Wno-dynamic-exception-spec # TODO: file bug to MS
  <cxxflags>-Wno-c++11-narrowing # TODO: wut




  <cxxflags>-D_CRT_DECLARE_NONSTDC_NAMES=1 # clang defines __STDC__, cl
does not (see definition of _CRT_INTERNAL_NONSTDC_NAMES)


option.set keep-going : false ;


For the rest it's just the normal process, like with VC.


*"If something cannot go on forever, it will stop" - Herbert Stein*

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at