Fix the libFuzzer build

This commit is contained in:
Zahary Karadjov 2020-06-01 15:09:45 +03:00
parent d759496d08
commit 1601894ec1
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 2 additions and 0 deletions

View File

@ -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()