Skip to content

Commit

Permalink
grpc-swift needs zlib (google#6402)
Browse files Browse the repository at this point in the history
* grpc-swift needs zlib

* swift: do not use CFLAGS for coverage
  • Loading branch information
catenacyber authored Sep 5, 2021
1 parent 0b49925 commit 9f4b295
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
15 changes: 7 additions & 8 deletions infra/base-images/base-builder-swift/precompile_swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ then
export SWIFTFLAGS="$SWIFTFLAGS -Xswiftc -profile-generate -Xswiftc -profile-coverage-mapping -Xswiftc -sanitize=fuzzer"
else
export SWIFTFLAGS="$SWIFTFLAGS -Xswiftc -sanitize=fuzzer,$SANITIZER --sanitize=$SANITIZER"
fi

for f in $CFLAGS; do
export SWIFTFLAGS="$SWIFTFLAGS -Xcc=$f"
done
for f in $CFLAGS; do
export SWIFTFLAGS="$SWIFTFLAGS -Xcc=$f"
done

for f in $CXXFLAGS; do
export SWIFTFLAGS="$SWIFTFLAGS -Xcxx=$f"
done
for f in $CXXFLAGS; do
export SWIFTFLAGS="$SWIFTFLAGS -Xcxx=$f"
done
fi
1 change: 1 addition & 0 deletions projects/grpc-swift/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
FROM gcr.io/oss-fuzz-base/base-builder-swift

# specific to project
RUN apt-get update && apt-get install -y zlib1g-dev
RUN git clone --depth 1 https://github.com/grpc/grpc-swift
COPY build.sh $SRC
WORKDIR $SRC/grpc-swift

0 comments on commit 9f4b295

Please sign in to comment.