-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
precompiles: Optionally use silkpre as implementation #660
Conversation
A Clang build of silkpre does not work. I'm getting |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #660 +/- ##
==========================================
+ Coverage 97.41% 97.43% +0.02%
==========================================
Files 81 83 +2
Lines 8013 8042 +29
==========================================
+ Hits 7806 7836 +30
+ Misses 207 206 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Not sure if it's relevant, but perhaps erigontech/silkpre#8 can help. |
Add CMake option EVMONE_PRECOMPILES_SILKPRE (default OFF). If enabled CMake will fetch the silkpre precompiles library. https://github.com/torquem-ch/silkpre
72c533c
to
12955a1
Compare
This seems coming from libff. |
f067d1b
to
1717844
Compare
@@ -172,6 +176,16 @@ inline constexpr auto traits = []() noexcept { | |||
{ecpairing_analyze, dummy_execute<PrecompileId::ecpairing>}, | |||
{blake2bf_analyze, dummy_execute<PrecompileId::blake2bf>}, | |||
}}; | |||
#ifdef EVMONE_PRECOMPILES_SILKPRE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not #ifdef
with two branches directly in the initialization above ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is structured as optional override. It also allows us quickly change what we override with silkpre.
This is from the stTimeConsuming.CALLBlake2f_MaxRounds state test.
97f3493
to
3f06da2
Compare
Add CMake option (off by default)
EVMONE_PRECOMPILES_SILKPRE
to enable building of silkpre as the precompiles implementation.