diff options
author | Fabian Meumertzheim <meumertzheim@code-intelligence.com> | 2021-02-26 14:35:53 +0100 |
---|---|---|
committer | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-03-22 15:05:37 +0100 |
commit | 2c8c48f4d252c77c2bb35347f260a1a9385ad684 (patch) | |
tree | edb68ce2997a57570e983976e4948e56156b926c /WORKSPACE.bazel | |
parent | 6e3d256bb8c9c72e420cf10b99c1689f86031cc3 (diff) | |
download | jazzer-api-2c8c48f4d252c77c2bb35347f260a1a9385ad684.tar.gz |
Build libFuzzer from source
Building libFuzzer from source is easy and has multiple advantages:
* The clang distributed with XCode on macOS does not include libFuzzer.
* Applying a small patch to libFuzzer will allow us to replace the
--wrap linker feature, which is not supported on platforms other than
Linux.
Diffstat (limited to 'WORKSPACE.bazel')
-rw-r--r-- | WORKSPACE.bazel | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 4fad5909..1d9d944e 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -197,3 +197,13 @@ http_archive( strip_prefix = "jacoco-%s" % jacoco_commit, url = "https://github.com/jacoco/jacoco/archive/178d49870056b8a1f8ea6915e804d28b0dda5609.tar.gz", ) + +# libFuzzer + +http_archive( + name = "libFuzzer", + build_file = "//third_party:libFuzzer.BUILD", + sha256 = "8ad4ddbafac4f2c8f2ea523c2c4196f940e8e16f9e635210537582a48622a5d5", + strip_prefix = "llvm-project-llvmorg-11.0.0", + url = "https://github.com/llvm/llvm-project/archive/llvmorg-11.0.0.tar.gz", +) |