mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge f7c0ddff46 into merged_master (Bitcoin PR bitcoin/bitcoin#30192)
This commit is contained in:
commit
d8a4f0f9af
3 changed files with 11 additions and 9 deletions
10
configure.ac
10
configure.ac
|
|
@ -238,12 +238,6 @@ AC_ARG_ENABLE([lcov],
|
|||
[use_lcov=$enableval],
|
||||
[use_lcov=no])
|
||||
|
||||
AC_ARG_ENABLE([lcov-branch-coverage],
|
||||
[AS_HELP_STRING([--enable-lcov-branch-coverage],
|
||||
[enable lcov testing branch coverage (default is no)])],
|
||||
[use_lcov_branch=yes],
|
||||
[use_lcov_branch=no])
|
||||
|
||||
AC_ARG_ENABLE([liquid],
|
||||
[AS_HELP_STRING([--enable-liquid],
|
||||
[Enable build that defaults to -chain=liquidv1])],
|
||||
|
|
@ -834,10 +828,8 @@ if test "$use_lcov" = "yes"; then
|
|||
AX_CHECK_COMPILE_FLAG([--coverage],[CORE_CXXFLAGS="$CORE_CXXFLAGS --coverage";CFLAGS="$CFLAGS --coverage"],
|
||||
[AC_MSG_ERROR([lcov testing requested but --coverage flag does not work])])
|
||||
CORE_CXXFLAGS="$CORE_CXXFLAGS -Og"
|
||||
fi
|
||||
|
||||
if test "$use_lcov_branch" != "no"; then
|
||||
AC_SUBST(LCOV_OPTS, "$LCOV_OPTS --rc lcov_branch_coverage=1")
|
||||
AC_SUBST(LCOV_OPTS)
|
||||
fi
|
||||
|
||||
dnl Check for endianness
|
||||
|
|
|
|||
|
|
@ -497,6 +497,10 @@ make cov
|
|||
# unit and functional tests.
|
||||
```
|
||||
|
||||
Additional LCOV options can be specified using `LCOV_OPTS`, but may be dependant
|
||||
on the version of LCOV. For example, when using LCOV `2.x`, branch coverage can be
|
||||
enabled by setting `LCOV_OPTS="--rc branch_coverage=1"`, when configuring.
|
||||
|
||||
### Performance profiling with perf
|
||||
|
||||
Profiling is a good way to get a precise idea of where time is being spent in
|
||||
|
|
|
|||
6
doc/release-notes-30192.md
Normal file
6
doc/release-notes-30192.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
Build
|
||||
-----
|
||||
|
||||
`--enable-lcov-branch-coverage` has been removed, given
|
||||
incompatibilities between lcov version 1 & 2. `LCOV_OPTS`
|
||||
should be used to set any options instead.
|
||||
Loading…
Add table
Add a link
Reference in a new issue