Boost logo

Boost :

Subject: Re: [boost] clang-win, (Thin)LTO this time
From: Peter Dimov (lists_at_[hidden])
Date: 2018-10-31 14:31:53


degski wrote:

> Hacking clang-win.jam:156 to:
>
> toolset.flags clang-win.archive .LD $(cond) : "\"C:\\Program
> Files\\LLVM\\bin\\lld-link.exe\"" /lib ;
>
> achieves this goal.

This shouldn't be necessary with -fuse-ld=lld... but you need to give the
option in the actual command rather than as a compile flag:

using clang-win : : "C:\\Program Files\\LLVM\\bin\\clang-cl.exe"
"-fuse-ld=lld" : ... ;

It should then autodetect the above "lld-link.exe /lib" as the archiver.

Or, you could set <archiver> manually:

using clang-win : : : <archiver>"\"C:\\Program
Files\\LLVM\\bin\\lld-link.exe\" /lib" ... ;


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