From 1b83fdffe031e8d44e31e8182c106b633b950657 Mon Sep 17 00:00:00 2001 From: Pascal Muetschard Date: Fri, 10 May 2019 12:12:16 -0700 Subject: [PATCH] Don't use the soon-to-be deprecated --legacy_whole_archive flag. See https://github.com/bazelbuild/bazel/issues/7362 --- .bazelrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index f13a1e5df4..b4b11c0374 100644 --- a/.bazelrc +++ b/.bazelrc @@ -33,7 +33,8 @@ build --define GAPID_BUILD_NUMBER=0 --define GAPID_BUILD_SHA=developer # Without this, bazel wraps each cc_library with "--whole-archive" flags for the # linker when building the dynamic library, which leads to over-bloated libs. -build --nolegacy_whole_archive +# TODO: Remove, once default is flipped: https://github.com/bazelbuild/bazel/issues/7362. +build --incompatible_remove_legacy_whole_archive # Sets the go +build tags to use during compilation. build --define gotags=analytics,crashreporting