From 63f0a58d51a349e1fb733bbc6a77afef6ce96813 Mon Sep 17 00:00:00 2001 From: Jeff McGlynn Date: Wed, 23 Jan 2019 16:57:16 -0800 Subject: Update honggfuzz, fix compilation errors with gcc * Compile with -std=c11 * Update to honggfuzz-1.7. --- WORKSPACE | 6 +++--- third_party/honggfuzz.BUILD | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 250f9ad..83fd282 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -23,10 +23,10 @@ git_repository( http_archive( name = "honggfuzz", - url = "https://github.com/google/honggfuzz/archive/1.6.zip", - sha256 = "c331ac5beebe526bced3043ed3012109e439315b7d74d72760b0aa6d08cc05d2", + url = "https://github.com/google/honggfuzz/archive/1.7.zip", + sha256 = "9d420326979fed4a065fa6176d5e09bd513cd2820fe216ae8b684aa6780d72b2", build_file = "//third_party:honggfuzz.BUILD", - strip_prefix = "honggfuzz-1.6", + strip_prefix = "honggfuzz-1.7", ) http_archive( diff --git a/third_party/honggfuzz.BUILD b/third_party/honggfuzz.BUILD index 67a44be..07d9042 100644 --- a/third_party/honggfuzz.BUILD +++ b/third_party/honggfuzz.BUILD @@ -20,14 +20,19 @@ cc_library( "libhfcommon/*.h", "honggfuzz.h", ]), + copts = [ + "-std=c11", + ], defines = select({ "@bazel_tools//src/conditions:darwin_x86_64": ["_HF_ARCH_DARWIN"], "@bazel_tools//src/conditions:darwin": ["_HF_ARCH_DARWIN"], - "//conditions:default": ["_HF_ARCH_LINUX", "linux=linux"], + "//conditions:default": ["_HF_ARCH_LINUX"], }) + select({ ":opt": [], "//conditions:default": ["DEBUG=DEBUG"], - }), + }) + [ + "_GNU_SOURCE", + ], includes = ["."], visibility = ["//visibility:public"], linkstatic = 1 -- cgit v1.2.3