aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/buildh.in
diff options
context:
space:
mode:
authorMatthias Gierlings <[email protected]>2018-04-10 22:10:37 +0200
committerMatthias Gierlings <[email protected]>2018-04-12 22:44:28 +0200
commiteae170db2a6f0461cfe2f55b84ae4e89bd719a74 (patch)
treef9b9297df1a3e389a5fa44d70487cc81b87d56fa /src/build-data/buildh.in
parent6a9557cc5528ec01737e77b67959cba8778f1265 (diff)
Codecov - cover MT code in XMSS_PrivateKey
Codecov does not reach all parts of the `XMSS_PrivateKey` code because too few cores are detected during the CI run. To cover the missed codepaths always return a large enough core count if botan is compiled with coverage.
Diffstat (limited to 'src/build-data/buildh.in')
-rw-r--r--src/build-data/buildh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in
index 807b6f479..594eab9c8 100644
--- a/src/build-data/buildh.in
+++ b/src/build-data/buildh.in
@@ -56,6 +56,10 @@
#define BOTAN_HAS_SANITIZER_%{i|upper}
%{endfor}
+%{if build_coverage}
+#define BOTAN_HAS_COVERAGE
+%{endif}
+
#define BOTAN_TARGET_ARCH_IS_%{arch|upper}
%{if endian}
#define BOTAN_TARGET_CPU_IS_%{endian|upper}_ENDIAN