Boost logo

Boost :

Subject: [boost] How to build boost on windows with Clang/LLVM
From: degski (degski_at_[hidden])
Date: 2017-10-15 08:04:44

With the latest snapshot builds of clang, thin LTO is supported on Windows.
This thin LTO gives very interesting (speed) results. I would therefore
like to start to build boost with clang and no longer with msvc.

I have msvc 15.4 installed (the latest incarnation).

I made a project-config.jam:


import option ;

using clang : 6.0 : clang++.exe

option.set keep-going : false ;


I call:

bjam -a -d+2 cxxflags="-O0" "-sZLIB_SOURCE=%HOME%\zlib-1.2.8"
"-sBZIP2_SOURCE=%HOME%\bzip2-1.0.6" variant=debug instruction-set=haswell
threading=multi link=static runtime-link=static --prefix=%PREFIX%
--build-dir=c:\boost-build address-model=64 architecture=x86 toolset=msvc
--without-python --without-mpi --disable-filesystem2 install

This does not work.

What is the proper way to compile boost on windows using clang++.exe or
clang-cl.exe for use with VS2017.


"*Ihre sogenannte Religion wirkt bloß wie ein Opiat reizend, betäubend,
Schmerzen aus Schwäche stillend.*" - Novalis 1798

Boost list run by bdawes at, gregod at, cpdaniel at, john at