Fix the libFuzzer build
This commit is contained in:
parent
d759496d08
commit
1601894ec1
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue