aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jeff McGlynn <jwmcglynn@google.com>2019-01-23 16:57:16 -0800
committerGravatar Jeff McGlynn <jeff@jeffmcglynn.com>2019-01-23 17:55:54 -0800
commit63f0a58d51a349e1fb733bbc6a77afef6ce96813 (patch)
treeed95fa551aff242b1355a4e766e796bdf5f07b78
parent556abf78135ffe64b29b731b4a80dacb7e3599f6 (diff)
Update honggfuzz, fix compilation errors with gcc
* Compile with -std=c11 * Update to honggfuzz-1.7.
-rw-r--r--WORKSPACE6
-rw-r--r--third_party/honggfuzz.BUILD9
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