diff options
author | Craig Tiller <ctiller@google.com> | 2017-05-15 08:29:10 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-05-15 08:29:10 -0700 |
commit | f66de6e21701283f575f179142235a3616e31210 (patch) | |
tree | 5b03fc16b2fde5e94ff9a34aa1c3e7287bfc38ce /bazel | |
parent | e09babb949b48015455e3cd432ca949b1e698670 (diff) |
Fix a build bug, add a note
Diffstat (limited to 'bazel')
-rw-r--r-- | bazel/grpc_build_system.bzl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bazel/grpc_build_system.bzl b/bazel/grpc_build_system.bzl index 4b1e321f1e..0f66edbcd0 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"], ) |