aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-14 08:03:28 -0400
committerJack Lloyd <[email protected]>2018-03-14 08:03:28 -0400
commite4487e872877cb13a03974f741744eff847de801 (patch)
tree9c0e399238a5df614813e7d15a2deb04e0ea4425 /src/build-data
parentea0ce769791640e883ec4b7f73dcbce4b0399783 (diff)
Add a facility for debug-mode assertions
When we want to check something but it is to expensive to do so in normal builds.
Diffstat (limited to 'src/build-data')
-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 fcdd8e6d6..b2bc0ea4b 100644
--- a/src/build-data/buildh.in
+++ b/src/build-data/buildh.in
@@ -75,6 +75,10 @@
#define BOTAN_TARGET_HAS_OPENMP
%{endif}
+%{if with_debug_asserts}
+#define BOTAN_ENABLE_DEBUG_ASSERTS
+%{endif}
+
/*
* Module availability definitions
*/