|
1 |
| -project('libffi', 'c', version : '3.4.4', |
| 1 | +project('libffi', 'c', version : '3.4.6', |
2 | 2 | meson_version : '>= 0.56.0',
|
3 | 3 | default_options : ['debug=true',
|
4 | 4 | 'optimization=3',
|
@@ -128,9 +128,15 @@ elif (host_cpu_family in ['hppa', 'hppa64'] and host_system in ['linux', 'openbs
|
128 | 128 | asm_sources = ['linux.S']
|
129 | 129 | elif host_cpu_family == 'hppa' and host_system in ['hpux']
|
130 | 130 | # FIXME: hppa family is missing in Meson
|
131 |
| - target = 'PA_HPUX' |
132 | 131 | targetdir = 'pa'
|
133 |
| - asm_sources = ['hpux32.S'] |
| 132 | + if size_t == 4 |
| 133 | + target = 'PA_HPUX' |
| 134 | + asm_sources = ['hpux32.S'] |
| 135 | + else |
| 136 | + target = 'PA64_HPUX' |
| 137 | + c_sources = ['ffi64.c'] |
| 138 | + asm_sources = ['hpux64.S'] |
| 139 | + endif |
134 | 140 | elif host_cpu_family == 'x86' and host_system in ['freebsd', 'openbsd']
|
135 | 141 | target = 'X86_FREEBSD'
|
136 | 142 | targetdir = 'x86'
|
@@ -226,7 +232,7 @@ elif host_cpu_family == 'or1k'
|
226 | 232 | # FIXME: or1k family is missing in Meson
|
227 | 233 | target = 'OR1K'
|
228 | 234 | elif (host_cpu_family in ['ppc', 'ppc64'] and \
|
229 |
| - host_system in ['linux', 'sysv', 'amigaos', 'eabi', 'beos', 'rtems']) or \ |
| 235 | + host_system in ['linux', 'sysv', 'amigaos', 'eabi', 'beos', 'haiku', 'rtems']) or \ |
230 | 236 | (host_cpu_family == 'ppc64' and host_system == 'freebsd')
|
231 | 237 | target = 'POWERPC'
|
232 | 238 | c_sources = ['ffi.c', 'ffi_sysv.c', 'ffi_linux64.c']
|
@@ -274,6 +280,8 @@ elif host_cpu_family == 'vax'
|
274 | 280 | # FIXME: vax family is missing in Meson
|
275 | 281 | target = 'VAX'
|
276 | 282 | asm_sources = ['elfbsd.S']
|
| 283 | +elif host_cpu_family == 'wasm32' |
| 284 | + target = 'wasm32' # lowercase |
277 | 285 | elif host_cpu_family == 'xtensa'
|
278 | 286 | # FIXME: xtensa family is missing in Meson
|
279 | 287 | target = 'XTENSA'
|
|
0 commit comments