mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
build: Add missing host system checks for Android
This commit is contained in:
parent
01b77666bc
commit
7b7f987a36
@ -34,7 +34,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
|
|||||||
name : 'printf supports the \'F\' directive')
|
name : 'printf supports the \'F\' directive')
|
||||||
gl_cv_func_printf_directive_f = run_result.compiled() and run_result.returncode() == 0
|
gl_cv_func_printf_directive_f = run_result.compiled() and run_result.returncode() == 0
|
||||||
else
|
else
|
||||||
if host_system == 'linux'
|
if host_system in ['linux', 'android']
|
||||||
gl_cv_func_printf_directive_f = true
|
gl_cv_func_printf_directive_f = true
|
||||||
elif (host_system.startswith ('freebsd1') or
|
elif (host_system.startswith ('freebsd1') or
|
||||||
host_system.startswith ('freebsd2') or
|
host_system.startswith ('freebsd2') or
|
||||||
|
@ -28,7 +28,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
|
|||||||
name : 'printf supports the zero flag correctly')
|
name : 'printf supports the zero flag correctly')
|
||||||
gl_cv_func_printf_flag_zero = run_result.compiled() and run_result.returncode() == 0
|
gl_cv_func_printf_flag_zero = run_result.compiled() and run_result.returncode() == 0
|
||||||
else
|
else
|
||||||
if host_system == 'linux'
|
if host_system in ['linux', 'android']
|
||||||
gl_cv_func_printf_flag_zero = true
|
gl_cv_func_printf_flag_zero = true
|
||||||
elif host_system.startswith ('beos')
|
elif host_system.startswith ('beos')
|
||||||
gl_cv_func_printf_flag_zero = true
|
gl_cv_func_printf_flag_zero = true
|
||||||
|
@ -82,7 +82,7 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
|
|||||||
name : 'printf supports infinite \'double\' arguments')
|
name : 'printf supports infinite \'double\' arguments')
|
||||||
gl_cv_func_printf_infinite = run_result.compiled() and run_result.returncode() == 0
|
gl_cv_func_printf_infinite = run_result.compiled() and run_result.returncode() == 0
|
||||||
else
|
else
|
||||||
if host_system == 'linux'
|
if host_system in ['linux', 'android']
|
||||||
gl_cv_func_printf_infinite = true
|
gl_cv_func_printf_infinite = true
|
||||||
elif (host_system.startswith ('freebsd1') or
|
elif (host_system.startswith ('freebsd1') or
|
||||||
host_system.startswith ('freebsd2') or
|
host_system.startswith ('freebsd2') or
|
||||||
|
@ -175,7 +175,7 @@ if gl_cv_func_printf_long_double
|
|||||||
if host_machine.cpu_family() == 'x86_64'
|
if host_machine.cpu_family() == 'x86_64'
|
||||||
gl_cv_func_printf_infinite_long_double = false
|
gl_cv_func_printf_infinite_long_double = false
|
||||||
else
|
else
|
||||||
if host_system == 'linux'
|
if host_system in ['linux', 'android']
|
||||||
gl_cv_func_printf_infinite_long_double = true
|
gl_cv_func_printf_infinite_long_double = true
|
||||||
elif (host_system.startswith ('freebsd1') or
|
elif (host_system.startswith ('freebsd1') or
|
||||||
host_system.startswith ('freebsd2') or
|
host_system.startswith ('freebsd2') or
|
||||||
|
Loading…
Reference in New Issue
Block a user