Update README.md with const_preset option [skip ci]

This commit is contained in:
kdeme 2019-12-05 10:07:07 +01:00 committed by GitHub
parent c7f6b70e8a
commit 5599c76d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,12 @@ make libnfuzz.a
make libnfuzz.so
```
Default, the library is build with the `minimal` config. To select a specific config you can instead run:
```bash
# build with mainnet config
make libnfuzz.a NIMFLAGS="-d:const_preset=mainnet"
```
For the library to be useful for fuzzing with libFuzzer (e.g. for
integration with [beacon-fuzz](https://github.com/sigp/beacon-fuzz)) we can pass
additional Nim arguments, e.g.: