OSDN Git Service

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)
commit4aef446efd97af82fa3c1df72ea78aace3ea7fd6
tree93a41574fd2bdeabf77f14b33e0a003a39e42bb5
parent2235e6b1cc4bab9e016f3c965edb9d4b9d8a2d2b
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351519 91177308-0d34-0410-b5e6-96231b3b80d8
utils/gn/build/toolchain/BUILD.gn
utils/gn/secondary/BUILD.gn