summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
diff options
context:
space:
mode:
authorJonathan Metzman <metzman@chromium.org>2019-12-12 08:48:54 -0800
committerJonathan Metzman <metzman@chromium.org>2019-12-12 08:56:47 -0800
commit23bee0b0cf7a1af084ea06f2b7dfde1767837084 (patch)
tree331745c4d7c45ab292058d54c3d5183b26657b22 /compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
parent25234fd69e32e51bc800686075265f535d69d990 (diff)
downloadbcm5719-llvm-23bee0b0cf7a1af084ea06f2b7dfde1767837084.tar.gz
bcm5719-llvm-23bee0b0cf7a1af084ea06f2b7dfde1767837084.zip
[fuzzer] Add basic support for emscripten.
Summary: Add basic support for emscripten. This enables libFuzzer to build (using build.sh) for emscripten and fuzz a target compiled with -fsanitize-coverage=inline-8bit-counters. Basic fuzzing and bug finding work with this commit. RSS limit and timeouts will not work because they depend on system functions that are not implemented/widely supported in emscripten. Reviewers: kcc, vitalybuka, hctim Reviewed By: hctim Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D71285
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp b/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
index ea5b87bd519..d56dab36c64 100644
--- a/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#include "FuzzerDefs.h"
#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FUCHSIA || \
- LIBFUZZER_FREEBSD || LIBFUZZER_OPENBSD
+ LIBFUZZER_FREEBSD || LIBFUZZER_OPENBSD || LIBFUZZER_EMSCRIPTEN
#include "FuzzerExtFunctions.h"
#include "FuzzerIO.h"
OpenPOWER on IntegriCloud