Skip to content

Commit f54c6c5

Browse files
committed
Merge bitcoin#480: Enable benchmark building by default
7a78f60 Print whether we're building benchmarks (Pieter Wuille) 4afec9f Build benchmarks by default (Pieter Wuille) Pull request description: Building benchmarks is fast, and I have on more than one occasion forgotten to pass `--enable-benchmark`, resulting in accidentally benchmarking a former build. Build them by default. Tree-SHA512: ce9096e42d9c19b63644f6b7ae153e92f9a37c3727f380329dfa332ce22a5e43151f1525979bd3516dd12f568e5e389b0acda2c383fca0e80c3cadc1d9b1d55a
2 parents c77fc08 + 7a78f60 commit f54c6c5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

configure.ac

+3-2
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[char foo;]])],
8585
])
8686

8787
AC_ARG_ENABLE(benchmark,
88-
AS_HELP_STRING([--enable-benchmark],[compile benchmark (default is no)]),
88+
AS_HELP_STRING([--enable-benchmark],[compile benchmark (default is yes)]),
8989
[use_benchmark=$enableval],
90-
[use_benchmark=no])
90+
[use_benchmark=yes])
9191

9292
AC_ARG_ENABLE(coverage,
9393
AS_HELP_STRING([--enable-coverage],[enable compiler flags to support kcov coverage analysis]),
@@ -447,6 +447,7 @@ AC_MSG_NOTICE([Using field implementation: $set_field])
447447
AC_MSG_NOTICE([Using bignum implementation: $set_bignum])
448448
AC_MSG_NOTICE([Using scalar implementation: $set_scalar])
449449
AC_MSG_NOTICE([Using endomorphism optimizations: $use_endomorphism])
450+
AC_MSG_NOTICE([Building benchmarks: $use_benchmark])
450451
AC_MSG_NOTICE([Building for coverage analysis: $enable_coverage])
451452
AC_MSG_NOTICE([Building ECDH module: $enable_module_ecdh])
452453
AC_MSG_NOTICE([Building ECDSA pubkey recovery module: $enable_module_recovery])

src/gen_context.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int main(int argc, char **argv) {
4141

4242
fprintf(fp, "#ifndef _SECP256K1_ECMULT_STATIC_CONTEXT_\n");
4343
fprintf(fp, "#define _SECP256K1_ECMULT_STATIC_CONTEXT_\n");
44-
fprintf(fp, "#include \"group.h\"\n");
44+
fprintf(fp, "#include \"src/group.h\"\n");
4545
fprintf(fp, "#define SC SECP256K1_GE_STORAGE_CONST\n");
4646
fprintf(fp, "static const secp256k1_ge_storage secp256k1_ecmult_static_context[64][16] = {\n");
4747

0 commit comments

Comments
 (0)