diff options
author | Jeff McGlynn <jwmcglynn@google.com> | 2019-01-23 16:57:16 -0800 |
---|---|---|
committer | Jeff McGlynn <jeff@jeffmcglynn.com> | 2019-01-23 17:55:54 -0800 |
commit | 63f0a58d51a349e1fb733bbc6a77afef6ce96813 (patch) | |
tree | ed95fa551aff242b1355a4e766e796bdf5f07b78 /third_party | |
parent | 556abf78135ffe64b29b731b4a80dacb7e3599f6 (diff) |
Update honggfuzz, fix compilation errors with gcc
* Compile with -std=c11
* Update to honggfuzz-1.7.
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/honggfuzz.BUILD | 9 |
1 files changed, 7 insertions, 2 deletions
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 |