From 7831bbd73585f6b24ddf1dc31e654f4a0afecdee Mon Sep 17 00:00:00 2001 From: ado Date: Wed, 1 Feb 2023 01:22:43 +0100 Subject: [PATCH] Add forcefallback wrap_mode option in meson.build --- meson.build | 3 ++- test/test_helpers.hpp | 5 +++++ test/test_main.cpp | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index bc32fcb..bf6970f 100644 --- a/meson.build +++ b/meson.build @@ -4,7 +4,8 @@ project( default_options : ['warning_level=3', 'cpp_std=c++17', - 'buildtype=debugoptimized'], + 'buildtype=debugoptimized', + 'wrap_mode=forcefallback'], version: '1.3.0', meson_version:'>=0.54.0') diff --git a/test/test_helpers.hpp b/test/test_helpers.hpp index 379f288..06ea703 100644 --- a/test/test_helpers.hpp +++ b/test/test_helpers.hpp @@ -1,7 +1,12 @@ #pragma once #include #include + +#ifdef CMAKE_GITHUB_CI #include +#else +#include +#endif struct buffer { char* data_{nullptr}; diff --git a/test/test_main.cpp b/test/test_main.cpp index 0a3f254..b8e3a4b 100644 --- a/test/test_main.cpp +++ b/test/test_main.cpp @@ -1,2 +1,2 @@ #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN -#include +#include