diff options
-rw-r--r-- | WORKSPACE | 6 | ||||
-rw-r--r-- | third_party/honggfuzz.BUILD | 9 |
2 files changed, 10 insertions, 5 deletions
@@ -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 |