diff options
| author | 2022-01-25 03:47:07 +0100 | |
|---|---|---|
| committer | 2022-01-25 03:47:07 +0100 | |
| commit | 99cd35bd12745364ef777a36b3cb7186d18458b1 (patch) | |
| tree | 7afee7416346e70888847bd5c3f17056451e5da7 | |
| parent | c7b005bc7864b6109115d4278872152208e78c23 (diff) | |
| download | libplist-99cd35bd12745364ef777a36b3cb7186d18458b1.tar.gz libplist-99cd35bd12745364ef777a36b3cb7186d18458b1.tar.bz2 | |
configure: Fix clang detection when configuring --with-fuzzers
| -rw-r--r-- | configure.ac | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index d1b1f62..c679151 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -272,9 +272,14 @@ if test "x$build_sanitizers" = "xyes"; then | |||
| 272 | fi | 272 | fi |
| 273 | 273 | ||
| 274 | if test "x$build_fuzzers" = "xyes"; then | 274 | if test "x$build_fuzzers" = "xyes"; then |
| 275 | if test "$CXX" != "clang++"; then | 275 | IS_CLANG=`$CXX --version 2>/dev/null |grep clang` |
| 276 | case "$IS_CLANG" in | ||
| 277 | *clang*) | ||
| 278 | ;; | ||
| 279 | *) | ||
| 276 | AC_MSG_WARN([building fuzzers requires clang/clang++ (continuing anyway)]) | 280 | AC_MSG_WARN([building fuzzers requires clang/clang++ (continuing anyway)]) |
| 277 | fi | 281 | ;; |
| 282 | esac | ||
| 278 | 283 | ||
| 279 | CFLAGS+=" -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" | 284 | CFLAGS+=" -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" |
| 280 | 285 | ||
