Add forcefallback wrap_mode option in meson.build

This commit is contained in:
ado 2023-02-01 01:22:43 +01:00
parent 6efb39b2db
commit 7831bbd735
3 changed files with 8 additions and 2 deletions

View File

@ -4,7 +4,8 @@ project(
default_options : default_options :
['warning_level=3', ['warning_level=3',
'cpp_std=c++17', 'cpp_std=c++17',
'buildtype=debugoptimized'], 'buildtype=debugoptimized',
'wrap_mode=forcefallback'],
version: '1.3.0', version: '1.3.0',
meson_version:'>=0.54.0') meson_version:'>=0.54.0')

View File

@ -1,7 +1,12 @@
#pragma once #pragma once
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#ifdef CMAKE_GITHUB_CI
#include <doctest/doctest.h> #include <doctest/doctest.h>
#else
#include <doctest.h>
#endif
struct buffer { struct buffer {
char* data_{nullptr}; char* data_{nullptr};

View File

@ -1,2 +1,2 @@
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h> #include <doctest.h>