31 Oct
2018
31 Oct
'18
2:31 p.m.
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" ... ;