Skip to content

Commit 4d35efd

Browse files
committed
meson: Add option for UNITY_SUPPORT_64
1 parent 51d2db9 commit 4d35efd

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ project('unity', 'c',
2626
build_fixture = get_option('extension_fixture')
2727
build_memory = get_option('extension_memory')
2828
support_double = get_option('support_double')
29+
support_int64 = get_option('support_int64')
2930
fixture_help_message = get_option('fixture_help_message')
3031

3132
unity_args = []
@@ -51,6 +52,10 @@ if support_double
5152
unity_args += '-DUNITY_INCLUDE_DOUBLE'
5253
endif
5354

55+
if support_int64
56+
unity_args += '-DUNITY_SUPPORT_64'
57+
endif
58+
5459
unity_lib = static_library(meson.project_name(),
5560
sources: unity_src,
5661
c_args: unity_args,

meson_options.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
option('extension_fixture', type: 'boolean', value: false, description: 'Whether to enable the fixture extension.')
22
option('extension_memory', type: 'feature', value: 'auto', description: 'Whether to enable the memory extension. By default this is automatically enabled when extension_fixture is enabled.')
33
option('support_double', type: 'boolean', value: false, description: 'Whether to enable double precision floating point assertions.')
4+
option('support_int64', type: 'boolean', value: false, description: 'Whether to enable support for 64bit integers. false means autodetect.')
45
option('fixture_help_message', type: 'string', description: 'If the fixture extension is enabled, this allows a custom help message to be defined.')

0 commit comments

Comments
 (0)