Fix abseil/toolchain to build with Bazel 0.25.1 or newer
Context
When using latest Bazel we need to use latest toolchain. This currently fails:
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 21ea7a4b-9e60-4ba6-8bba-c905c78d6a93
DEBUG: Rule 'bazel_toolchains' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "b13e6e5cd2c29915df32c2b04971bfd12dc131a4", shallow_since = "1557516910 -0400" and dropping ["branch"]
INFO: Analysed 240 targets (38 packages loaded, 1546 targets configured).
INFO: Found 240 targets...
ERROR: /src/repo/absl/algorithm/BUILD.bazel:47:1: undeclared inclusion(s) in rule '//absl/algorithm:algorithm_benchmark':
this rule is missing dependency declarations for the following files included by 'absl/algorithm/equal_benchmark.cc':
'/usr/local/lib/clang/8.0.0/include/stdint.h'
'/usr/local/lib/clang/8.0.0/include/stddef.h'
'/usr/local/lib/clang/8.0.0/include/stdarg.h'
'/usr/local/lib/clang/8.0.0/include/x86intrin.h'
'/usr/local/lib/clang/8.0.0/include/ia32intrin.h'
'/usr/local/lib/clang/8.0.0/include/immintrin.h'
'/usr/local/lib/clang/8.0.0/include/mmintrin.h'
'/usr/local/lib/clang/8.0.0/include/xmmintrin.h'
'/usr/local/lib/clang/8.0.0/include/mm_malloc.h'
'/usr/local/lib/clang/8.0.0/include/emmintrin.h'
This is probably a bug in the toolchain, or a configuration issue when using it.
Task Description
Investigate how to configure the toolchain to ignore those files, in the same way it was done for the previous versions of the toolchain, using the CROSSTOOLS file.
An example of the failure can be reproduced using the branch pedro/use-latest-bazel
Acceptance Criteria
We can build Abseil using latest Bazel/toolchain
Edited by Pedro Alvarez Piedehierro