From f66de6e21701283f575f179142235a3616e31210 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 15 May 2017 08:29:10 -0700 Subject: [PATCH] Fix a build bug, add a note --- bazel/grpc_build_system.bzl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bazel/grpc_build_system.bzl b/bazel/grpc_build_system.bzl index 4b1e321f1e1..0f66edbcd05 100644 --- a/bazel/grpc_build_system.bzl +++ b/bazel/grpc_build_system.bzl @@ -32,6 +32,11 @@ # the BUILD file for gRPC. It contains the mapping for the template system we # use to generate other platform's build system files. # +# Please consider that there should be a high bar for additions and changes to +# this file. +# Each rule listed must be re-written for Google's internal build system, and +# each change must be ported from one to the other. +# def grpc_cc_library(name, srcs = [], public_hdrs = [], hdrs = [], external_deps = [], deps = [], standalone = False, @@ -75,12 +80,16 @@ def grpc_proto_library(name, srcs = [], deps = [], well_known_protos = None, ) def grpc_cc_test(name, srcs = [], deps = [], external_deps = [], args = [], data = [], language = "C++"): + copts = [] + if language.upper() == "C": + copts = ["-std=c99"] native.cc_test( name = name, srcs = srcs, args = args, data = data, deps = deps + ["//external:" + dep for dep in external_deps], + copts = copts, linkopts = ["-pthread"], )