From 0ebb3df69cb5e7c977c12a7be31abde5511e4d13 Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 27 Mar 2023 14:59:09 +0200 Subject: [PATCH] Fix debug build by adding compat.c to tests Linking of tests that needed something from compat.c failed. PR #3865 Signed-off-by: Romain Vimont --- app/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/meson.build b/app/meson.build index 723274c9..b1cfb2b6 100644 --- a/app/meson.build +++ b/app/meson.build @@ -310,7 +310,8 @@ if get_option('buildtype') == 'debug' ] foreach t : tests - exe = executable(t[0], t[1], + sources = t[1] + ['src/compat.c'] + exe = executable(t[0], sources, include_directories: src_dir, dependencies: dependencies, c_args: ['-DSDL_MAIN_HANDLED', '-DSC_TEST'])