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. --- third_party/honggfuzz.BUILD | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'third_party') 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