Imported Upstream version 1.36.0
[platform/upstream/grpc.git] / tools / internal_ci / linux / grpc_bazel_build_in_docker.sh
index 60d5fc3..623086a 100755 (executable)
@@ -25,7 +25,14 @@ git clone /var/local/jenkins/grpc /var/local/git/grpc
 ${name}')
 cd /var/local/git/grpc
 
-bazel build :all //test/... //examples/...
+# Build all basic targets using the strict warning option which leverages the
+# clang compiler to check if sources can pass a set of warning options.
+bazel build --define=use_strict_warning=true \
+       :all \
+       //src/core/... \
+       //src/compiler/... \
+       //test/... \
+       //examples/...
 
 # TODO(jtattersmusch): Adding a build here for --define=grpc_no_xds is not ideal
 # and we should find a better place for this. Refer