gn build: unbreak mac (and maybe win) after r351258, r351277
authorNico Weber <nicolasweber@gmx.de>
Fri, 18 Jan 2019 04:09:30 +0000 (04:09 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 18 Jan 2019 04:09:30 +0000 (04:09 +0000)
commit1e8b76ed77e8962859ff1db6be598a7f070cfb78
tree66f42f4f3f4fc13e1db5c5265081043e722a6aa8
parent5a72aa10bf0bd8ba2267372077650d57a2e8bbdd
gn build: unbreak mac (and maybe win) after r351258, r351277

The check-hwasan build files assert that current_os == "linux" || current_os ==
"android", so pull it in only there.

ar is unused on mac, so don't set it in the stage2 toolchain. (It'd be nicer to
use llvm-libtool on mac instead of host libtool, but llvm-libtool doesn't seem
to understand the -no_warning_for_no_symbols flag.)

Differential Revision: https://reviews.llvm.org/D56898

llvm-svn: 351519
llvm/utils/gn/build/toolchain/BUILD.gn
llvm/utils/gn/secondary/BUILD.gn