Skip to content

Commit 9589533

Browse files
bgilbertneheb
authored andcommitted
libffi: update from 3.5.1 to 3.5.2
1 parent 172cc65 commit 9589533

File tree

6 files changed

+30
-10
lines changed

6 files changed

+30
-10
lines changed

releases.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,6 +1896,7 @@
18961896
"libffi"
18971897
],
18981898
"versions": [
1899+
"3.5.2-1",
18991900
"3.5.1-2",
19001901
"3.5.1-1",
19011902
"3.4.8-1",

subprojects/libffi.wrap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[wrap-file]
2-
directory = libffi-3.5.1
3-
source_url = https://github.com/libffi/libffi/releases/download/v3.5.1/libffi-3.5.1.tar.gz
4-
source_filename = libffi-3.5.1.tar.gz
5-
source_hash = f99eb68a67c7d54866b7706af245e87ba060d419a062474b456d3bc8d4abdbd1
2+
directory = libffi-3.5.2
3+
source_url = https://github.com/libffi/libffi/releases/download/v3.5.2/libffi-3.5.2.tar.gz
4+
source_filename = libffi-3.5.2.tar.gz
5+
source_hash = f3a3082a23b37c293a4fcd1053147b371f2ff91fa7ea1b2a52e335676bac82dc
66
patch_directory = libffi
77

88
[provide]

subprojects/packagefiles/libffi/meson.build

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'libffi',
33
'c',
4-
version: '3.5.1',
4+
version: '3.5.2',
55
license: 'MIT',
66
meson_version: '>= 0.56.0',
77
default_options: ['warning_level=1'],
@@ -90,6 +90,7 @@ endforeach
9090
# Default values
9191
c_sources = ['ffi.c']
9292
asm_sources = ['sysv.S']
93+
private_c_args = []
9394
masm_args = []
9495
targetdir = ''
9596
have_long_double = ''
@@ -315,9 +316,15 @@ elif host_cpu_family == 'vax'
315316
# FIXME: vax family is missing in Meson
316317
target = 'VAX'
317318
asm_sources = ['elfbsd.S']
318-
elif host_cpu_family == 'wasm32'
319-
target = 'wasm32' # lowercase
319+
elif host_cpu_family in ['wasm32', 'wasm64']
320+
target = host_cpu_family # lowercase
321+
targetdir = 'wasm'
320322
asm_sources = []
323+
if host_cpu_family == 'wasm64'
324+
private_c_args += cc.get_supported_arguments(
325+
'-sMEMORY64=' + (get_option('wasm64_compat32') ? '2' : '1'),
326+
)
327+
endif
321328
elif host_cpu_family == 'xtensa'
322329
# FIXME: xtensa family is missing in Meson
323330
target = 'XTENSA'
@@ -435,6 +442,7 @@ if host_cpu_family in ['arm', 'aarch64'] and host_system == 'darwin'
435442
elif host_system in [
436443
'android',
437444
'darwin',
445+
'dragonfly',
438446
'openbsd',
439447
'freebsd',
440448
'solaris',

subprojects/packagefiles/libffi/meson_options.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,9 @@ option(
5858
type: 'array',
5959
value: [],
6060
)
61+
# Toggle this if you want to build with -sMEMORY64=2 on wasm64
62+
option(
63+
'wasm64_compat32',
64+
type: 'boolean',
65+
value: false,
66+
)

subprojects/packagefiles/libffi/src/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ ffi_lib = library(
100100
'ffi',
101101
ffi_c_sources,
102102
ffi_asm_sources,
103-
c_args: ['-DFFI_BUILDING_DLL', public_c_args],
103+
c_args: ['-DFFI_BUILDING_DLL', public_c_args, private_c_args],
104104
include_directories: ffiinc,
105105
link_args: ffi_link_args,
106106
link_depends: ffi_map_file,

subprojects/packagefiles/libffi/testsuite/meson.build

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,13 @@ foreach suite, sources : tests
385385
exe_name,
386386
src,
387387
dependencies: ffi_dep,
388-
c_args: [common_c_args, suite_c_args, matrix_c_args],
389-
cpp_args: [common_c_args, suite_c_args, matrix_c_args],
388+
c_args: [common_c_args, private_c_args, suite_c_args, matrix_c_args],
389+
cpp_args: [
390+
common_c_args,
391+
private_c_args,
392+
suite_c_args,
393+
matrix_c_args,
394+
],
390395
# Not supported by Meson < 0.64, but -Ox in c_args takes precedence
391396
#override_options: ['optimization=plain'],
392397
)

0 commit comments

Comments
 (0)