From e23804f01f93d2e21259d6aa1cec2853e625790c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 1 Feb 2022 15:52:22 -0500 Subject: Fix static build on Windows --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 662ee96..c62e530 100644 --- a/meson.build +++ b/meson.build @@ -163,12 +163,15 @@ if get_option('default_library') == 'both' library_type = 'both_libraries' library_args = ['-DZIX_INTERNAL'] + prog_args = [] elif get_option('default_library') == 'shared' library_type = 'shared_library' library_args = ['-DZIX_INTERNAL'] + prog_args = [] else library_type = 'static_library' library_args = ['-DZIX_INTERNAL', '-DZIX_STATIC'] + prog_args = ['-DZIX_STATIC'] endif # @@ -273,14 +276,13 @@ if get_option('tests') dl_dep = cc.find_library('dl', required: false) foreach test : tests - c_args = [] sources = files('test/@0@.c'.format(test), 'test/failing_allocator.c') test(test, executable(test, sources, include_directories: include_directories(['include']), - c_args: c_args, + c_args: prog_args, dependencies: [dl_dep, zix_dep, thread_dep]), timeout: 120) endforeach -- cgit v1.2.1