From afbd3abb20d92c78d526e4b2f34f582efdb6b7bf Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Sat, 12 Jul 2025 17:22:59 -0500 Subject: [PATCH] test: always build path_source and options/path.c for test_utils Because the previous commit started using mp_get_user_path in core m_option files, various tests failed with undefined references due to these two files not being included. Add them to the common list of test_utils files. --- test/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/meson.build b/test/meson.build index e8f995cf81..35638ce855 100644 --- a/test/meson.build +++ b/test/meson.build @@ -22,8 +22,10 @@ test_utils_files = [ 'options/m_config_core.c', 'options/m_config_frontend.c', 'options/m_option.c', + 'options/path.c', 'osdep/io.c', 'osdep/timer.c', + path_source, timer_source, 'ta/ta.c', 'ta/ta_talloc.c', @@ -110,9 +112,7 @@ codepoint_width = executable('codepoint-width', files('codepoint_width.c'), include_directories: incdir, link_with: test_utils) test('codepoint-width', codepoint_width) -paths_objects = libmpv.extract_objects('options/path.c', path_source) -paths = executable('paths', 'paths.c', include_directories: incdir, - objects: paths_objects, link_with: test_utils) +paths = executable('paths', 'paths.c', include_directories: incdir, link_with: test_utils) test('paths', paths) if get_option('libmpv')