From 8d3024a7e09246e44bf6d9ea14a36e6b03032e85 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 20 Sep 2021 10:15:12 +0200 Subject: It's not possible to compile out tests Tests are now compiled in if `ZEN_WITH_TESTS=1`, and compiled out if not. Compiling tests out reduces the footprint of the resulting executables quite significantly. --- zencore/compactbinaryvalidation.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'zencore/compactbinaryvalidation.cpp') diff --git a/zencore/compactbinaryvalidation.cpp b/zencore/compactbinaryvalidation.cpp index dafd1bcc8..3d72148f9 100644 --- a/zencore/compactbinaryvalidation.cpp +++ b/zencore/compactbinaryvalidation.cpp @@ -6,11 +6,10 @@ #include #include #include +#include #include -#include - namespace zen { namespace CbValidationPrivate { @@ -649,6 +648,7 @@ ValidateCompactBinaryPackage(MemoryView View, CbValidateMode Mode) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +#if ZEN_WITH_TESTS void usonvalidation_forcelink() { @@ -658,5 +658,6 @@ TEST_CASE("usonvalidation") { SUBCASE("Basic") {} } +#endif } // namespace zen -- cgit v1.2.3