[bazel] Add fixes for --incompatible_load_cc_rules_from_bzl (#351)

* [bazel] Add fixes for --incompatible_load_cc_rules_from_bzl

Starting with Bazel 1.0 (September 2019), C++ rules will need to be
loaded from the @rules_cc repository. This change adds the required
loads for that. For full compatibility, we will need versions of
googletest and google-benchmark that also includes these loads.

* Run buildifier again after merge
This commit is contained in:
Yannic 2019-08-16 14:38:13 +00:00 committed by Derek Mauro
parent aae8143cf9
commit 36910d3d7e
18 changed files with 33 additions and 3 deletions

View file

@ -14,6 +14,7 @@
# limitations under the License.
#
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load(
"//absl:copts/configure_copts.bzl",
"ABSL_DEFAULT_COPTS",

View file

@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
package(features = ["-parse_headers"])
licenses(["notice"]) # Apache License
@ -77,10 +79,10 @@ cc_library(
"include/cctz/zone_info_source.h",
],
linkopts = select({
":osx": [
":ios": [
"-framework Foundation",
],
":ios": [
":osx": [
"-framework Foundation",
],
"//conditions:default": [],