diff options
author | Max Dymond <cmeister2@gmail.com> | 2017-09-01 21:48:41 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-09-02 11:07:55 +0200 |
commit | 57001ce3bb97455d799f0a2180b7bf1287ffd71a (patch) | |
tree | 70673d337088c000590eb7645b4702cf7adea7e1 /.travis.yml | |
parent | c290b8fb23f6b6fd8e06e22755d23a5e8e3623aa (diff) | |
download | curl-57001ce3bb97455d799f0a2180b7bf1287ffd71a.tar.gz |
ossfuzz: Move to C++ for curl_fuzzer.
Automake gets confused if you want to use C++ static libraries with C
code - basically we need to involve the clang++ linker. The easiest way
of achieving this is to rename the C code as C++ code. This gets us a
bit further along the path and ought to be compatible with Google's
version of clang.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index cd8876e86..ca5ea8eba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -145,7 +145,12 @@ script: - | if [ "$T" = "fuzzer" ]; then export CC=clang + export CXX=clang++ export CFLAGS="-fsanitize=address" + + # Specifically use libstdc++ for travis as libc++ is not installed. + # This is ok because we're not compiling against libFuzzer. + export CXXFLAGS="-fsanitize=address -stdlib=libstdc++" ./configure --disable-shared --enable-debug --enable-maintainer-mode make cd tests/fuzz |