From 1601894ec1fd1c7095d405eb0c846cac212fb18f Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 1 Jun 2020 15:09:45 +0300 Subject: [PATCH] Fix the libFuzzer build --- testutils/fuzzing.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testutils/fuzzing.nim b/testutils/fuzzing.nim index 94d8ed8..6ef62bc 100644 --- a/testutils/fuzzing.nim +++ b/testutils/fuzzing.nim @@ -64,6 +64,8 @@ template init*(body: untyped) {.dirty.} = ## the test block. when defined(libFuzzer): template initImpl() {.dirty.} = + bind NimMain + proc fuzzerInit(): cint {.exportc: "LLVMFuzzerInitialize".} = NimMain()