aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpcpp/opencensus.h
diff options
context:
space:
mode:
authorGravatar easy <g-easy@users.noreply.github.com>2018-08-10 16:28:58 +1000
committerGravatar easy <g-easy@users.noreply.github.com>2018-08-10 16:28:58 +1000
commiteaa51cbc9de8e06c5714d1347dec25dea389950b (patch)
tree4d65a61ed942c8e9bb73bb740a113477eea107c6 /include/grpcpp/opencensus.h
parent1b6e8514a9e915fb3a74e81a9724ca8043d9e81f (diff)
Add explicit check that we're building with bazel.
Diffstat (limited to 'include/grpcpp/opencensus.h')
-rw-r--r--include/grpcpp/opencensus.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpcpp/opencensus.h b/include/grpcpp/opencensus.h
index 29b221f767..07a1333986 100644
--- a/include/grpcpp/opencensus.h
+++ b/include/grpcpp/opencensus.h
@@ -19,6 +19,10 @@
#ifndef GRPCPP_OPENCENSUS_H
#define GRPCPP_OPENCENSUS_H
+#ifndef GRPC_BAZEL_BUILD
+#error OpenCensus for gRPC is only supported when building with bazel.
+#endif
+
#include "opencensus/trace/span.h"
namespace grpc {