Skip to content

Commit be8700f

Browse files
authored
Pick llvm ar when using clang when possible (#602)
Signed-off-by: Uilian Ries <uilianries@gmail.com>
1 parent 905a0ab commit be8700f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/tools/clang-linux.jam

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ rule init ( version ? : command * : options * ) {
108108
{
109109
archiver = $(root)/bin/ar ;
110110
}
111+
if ! $(archiver)
112+
{
113+
local bin = [ common.get-absolute-tool-path $(command) ] ;
114+
archiver = [ common.get-invocation-command-nodefault clang-linux : llvm-ar : : $(bin) : search-path ] ;
115+
}
111116
toolset.flags clang-linux.archive .AR $(condition) : $(archiver[1]) ;
112117

113118
# - Resource compiler.

0 commit comments

Comments
 (0)