Boost logo

Boost :

Subject: Re: [boost] How to build boost on windows with Clang/LLVM
From: Konstantin Ivlev (tomskside_at_[hidden])
Date: 2017-10-15 09:11:26


hi,

what was an error in your case?
also, what was the boost version? there are many patches for Clang build in
develop not yet released in 1.65.1.
I was able to build with the following config:
=============start===============
using clang : 5.0 :
 "C:/Program Files/LLVM/bin/clang.exe" :
 <compileflags>-fmsc-version=1910
 <compileflags>-DBOOST_USE_WINAPI_VERSION=0x0502
 <compileflags>-DBOOST_USE_WINDOWS_H=1
 <compileflags>-D_WIN32_WINNT=0x0502
 <compileflags>-DNOMINMAX
 <ranlib>"C:/Program Files/LLVM/bin/llvm-ranlib.exe"
 <archiver>"C:/Program Files/LLVM/bin/llvm-ar.exe"
 <linkflags>-fuse-ld=lld ;
==============end===============

2017-10-15 15:04 GMT+07:00 degski via Boost <boost_at_[hidden]>:

> 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:
>
> =============start===============
>
> import option ;
>
> using clang : 6.0 : clang++.exe
> :
> <cxxflags>-fmacro-backtrace-limit=0
> <cxxflags>-Wno-invalid-token-paste
> <compileflags>-fmsc-version=1911
> <linkflags>-fuse-ld=lld
> <linkflags>-flto=thin
> ;
>
> option.set keep-going : false ;
>
> ==============end===============
>
> 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.
>
> degski
> --
> "*Ihre sogenannte Religion wirkt bloß wie ein Opiat reizend, betäubend,
> Schmerzen aus Schwäche stillend.*" - Novalis 1798
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/
> mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk