HarryR / ethsnarks

A toolkit for viable zk-SNARKS on Ethereum, Web, Mobile and Desktop
GNU Lesser General Public License v3.0
240 stars 57 forks source link

Propogate the 'DEBUG' definition, otherwise FMT() won't work #102

Closed HarryR closed 5 years ago

HarryR commented 5 years ago

This applies to programs which use ethsnarks as a submodule or as a cmake module.

The problem occurs when the libff library has assert enabled and requires the annotation prefix to be non-empty, but in the program that uses the library the DEBUG flag isn't propagated so FMT returns an empty string.