[gn build] Use llvm-ar when clang_base_path is specified
authorArthur Eubanks <aeubanks@google.com>
Wed, 11 May 2022 16:16:16 +0000 (09:16 -0700)
committerArthur Eubanks <aeubanks@google.com>
Wed, 11 May 2022 17:40:54 +0000 (10:40 -0700)
commitf37e6faf523d237a04b91fa3d736659a6ef8a9c6
treefbf400c9f221415406a97a08f7a87600af580d42
parentd80d812df0c829b6dbbcb968e7c3cf3c6be6ff41
[gn build] Use llvm-ar when clang_base_path is specified

Only applies linux for now.

This prevents warnings with use_thinlto like
  bfd plugin: LLVM gold plugin has failed to create LTO module: Not an int attribute (Producer: 'LLVM15.0.0git' Reader: 'LLVM 13.0.1')

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D125399
llvm/utils/gn/build/toolchain/BUILD.gn