File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,19 @@ cargo_c = find_program('cargo-cbuild', version:'>= 0.9.19')
30
30
rustc = find_program (' rustc' , version :' >= @0@' .format(msrv))
31
31
makedef = find_program (' meson/makedef.py' , native : true )
32
32
33
+ if host_system in [' darwin' , ' ios' ]
34
+ # Validate unconditional presence of getentropy and CCRandomGenerateBytes.
35
+ # https://github.com/rust-lang/rust/pull/116319
36
+ cc.compiles(''' #include <Availability.h>
37
+ #include <TargetConditionals.h>
38
+ #if !((TARGET_OS_OSX && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200L) || (TARGET_OS_IOS && __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000L))
39
+ # error "https://gitlab.gnome.org/GNOME/librsvg/-/issues/1097"
40
+ #endif''' ,
41
+ name : ' Targets at least macOS 10.12 or iOS 10' ,
42
+ required : rustc.version().version_compare(' >= 1.75.0' )
43
+ )
44
+ endif
45
+
33
46
py = import (' python' )
34
47
35
48
python = py.find_installation()
You can’t perform that action at this time.
0 commit comments