summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-02-01 15:52:22 -0500
committerDavid Robillard <d@drobilla.net>2022-02-01 15:52:22 -0500
commite23804f01f93d2e21259d6aa1cec2853e625790c (patch)
tree5535e377a7d04963e607ed5bf583c5daebb32454 /meson.build
parent335fe063ea9b98d8d94cb60e63a08eeb5303f0d8 (diff)
downloadzix-e23804f01f93d2e21259d6aa1cec2853e625790c.tar.gz
zix-e23804f01f93d2e21259d6aa1cec2853e625790c.tar.bz2
zix-e23804f01f93d2e21259d6aa1cec2853e625790c.zip
Fix static build on Windows
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 4 insertions, 2 deletions
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