diff options
author | Kostya Serebryany <konstantin.s.serebryany@gmail.com> | 2017-02-14 14:11:18 -0800 |
---|---|---|
committer | Kostya Serebryany <konstantin.s.serebryany@gmail.com> | 2017-02-14 14:11:18 -0800 |
commit | 3a42a0c28e63647fd9e396df24e7c2a2b8dc58b9 (patch) | |
tree | c85112c71fef9f8f05c5f3c5254f7a338bf4b203 /projects/grpc | |
parent | 101f8c4adf557b947b768d09e6a602b0c0ae922e (diff) | |
download | oss-fuzz-3a42a0c28e63647fd9e396df24e7c2a2b8dc58b9.tar.gz |
Add proper bazel flags for grpc build. This is a temporary hack for https://github.com/google/oss-fuzz/issues/383. A proper solution will need to be implemented later
Diffstat (limited to 'projects/grpc')
-rwxr-xr-x | projects/grpc/build.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/projects/grpc/build.sh b/projects/grpc/build.sh index b9f6bbc99..47806b823 100755 --- a/projects/grpc/build.sh +++ b/projects/grpc/build.sh @@ -43,7 +43,10 @@ bazel-bin/*.a \ " # build grpc +# Temporary hack, see https://github.com/google/oss-fuzz/issues/383 +EXTERA_BAZEL_FLAGS="--strip=never $(for f in $CXXFLAGS; do if [ $f != "-stdlib=libc++" ] ; then echo --copt=$f --linkopt=$f; fi; done)" bazel build --dynamic_mode=off --spawn_strategy=standalone --genrule_strategy=standalone \ + $EXTERA_BAZEL_FLAGS \ :all test/... third_party/boringssl-with-bazel/... third_party/nanopb/... CFLAGS="${CFLAGS} -Iinclude -I." |