projects/guix·blob java-team · refs

47 lines · 1.6 KiB

1Upstream status: https://github.com/ThrowTheSwitch/Unity/pull/823
2
3From 4d35efd1bc5ecfa67d73bf81e64ba54c08ed5318 Mon Sep 17 00:00:00 2001
4From: Dariqq <[email protected]>
5Date: Tue, 20 Jan 2026 18:10:14 +0000
6Subject: [PATCH] meson: Add option for UNITY_SUPPORT_64
7
8---
9 meson.build | 5 +++++
10 meson_options.txt | 1 +
11 2 files changed, 6 insertions(+)
12
13diff --git a/meson.build b/meson.build
14index 6585129..633beb3 100644
15--- a/meson.build
16+++ b/meson.build
17@@ -26,6 +26,7 @@ project('unity', 'c',
18 build_fixture = get_option('extension_fixture')
19 build_memory = get_option('extension_memory')
20 support_double = get_option('support_double')
21+support_int64 = get_option('support_int64')
22
23 unity_args = []
24 unity_src = []
25@@ -48,6 +49,10 @@ if support_double
26 unity_args += '-DUNITY_INCLUDE_DOUBLE'
27 endif
28
29+if support_int64
30+ unity_args += '-DUNITY_SUPPORT_64'
31+endif
32+
33 unity_lib = static_library(meson.project_name(),
34 sources: unity_src,
35 c_args: unity_args,
36diff --git a/meson_options.txt b/meson_options.txt
37index 8e66784..d8ab7a7 100644
38--- a/meson_options.txt
39+++ b/meson_options.txt
40@@ -1,3 +1,4 @@
41 option('extension_fixture', type: 'boolean', value: 'false', description: 'Whether to enable the fixture extension.')
42 option('extension_memory', type: 'boolean', value: 'false', description: 'Whether to enable the memory extension.')
43 option('support_double', type: 'boolean', value: 'false', description: 'Whether to enable double precision floating point assertions.')
44+option('support_int64', type: 'boolean', value: false, description: 'Whether to enable support for 64bit integers. false means autodetect.')
45--
462.52.0
47