mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
glib, gio tests: Apply the same rules to both gcc and clang when appropriate
This commit is contained in:
parent
3bba0adcc1
commit
83d573c3e4
@ -86,7 +86,7 @@ gio_tests = {
|
|||||||
'g-file-info' : {
|
'g-file-info' : {
|
||||||
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3070
|
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3070
|
||||||
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148
|
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/3148
|
||||||
'can_fail' : host_system in ['darwin', 'gnu'] or host_system == 'windows' and cc.get_id() != 'gcc',
|
'can_fail' : host_system in ['darwin', 'gnu'] or host_system == 'windows' and not glib_gnu_cc_compiler,
|
||||||
},
|
},
|
||||||
'g-icon' : {},
|
'g-icon' : {},
|
||||||
'gdbus-addresses' : {},
|
'gdbus-addresses' : {},
|
||||||
@ -1047,7 +1047,7 @@ if not meson.is_cross_build()
|
|||||||
'-nostdlib', '@INPUT@', '-o','@OUTPUT@'])
|
'-nostdlib', '@INPUT@', '-o','@OUTPUT@'])
|
||||||
|
|
||||||
# Rename symbol to match the one in the C file
|
# Rename symbol to match the one in the C file
|
||||||
if cc.get_id() == 'gcc' and host_system == 'windows'
|
if glib_gnu_cc_compiler and host_system == 'windows'
|
||||||
underscore = '_'
|
underscore = '_'
|
||||||
else
|
else
|
||||||
underscore = ''
|
underscore = ''
|
||||||
|
@ -2,7 +2,7 @@ glib_tests = {
|
|||||||
'array-test' : {},
|
'array-test' : {},
|
||||||
'asyncqueue' : {},
|
'asyncqueue' : {},
|
||||||
'atomic' : {
|
'atomic' : {
|
||||||
'c_args' : cc.get_id() == 'gcc' ? ['-Wstrict-aliasing=2'] : [],
|
'c_args' : glib_gnu_cc_compiler ? ['-Wstrict-aliasing=2'] : [],
|
||||||
'c_standards': c_standards.keys(),
|
'c_standards': c_standards.keys(),
|
||||||
},
|
},
|
||||||
'base64' : {},
|
'base64' : {},
|
||||||
@ -151,13 +151,13 @@ glib_tests = {
|
|||||||
},
|
},
|
||||||
'strfuncs' : {},
|
'strfuncs' : {},
|
||||||
'string' : {
|
'string' : {
|
||||||
'c_args' : cc.get_id() == 'gcc' ? ['-Werror=sign-conversion'] : [],
|
'c_args' : glib_gnu_cc_compiler ? ['-Werror=sign-conversion'] : [],
|
||||||
},
|
},
|
||||||
'strvbuilder' : {},
|
'strvbuilder' : {},
|
||||||
'testing' : {
|
'testing' : {
|
||||||
'args': [ '--verbose' ],
|
'args': [ '--verbose' ],
|
||||||
'extra_programs' : ['testing-helper'],
|
'extra_programs' : ['testing-helper'],
|
||||||
'c_args' : cc.get_id() == 'gcc' ? ['-Werror=sign-conversion'] : [],
|
'c_args' : glib_gnu_cc_compiler ? ['-Werror=sign-conversion'] : [],
|
||||||
},
|
},
|
||||||
'testing-nonfatal' : {
|
'testing-nonfatal' : {
|
||||||
'protocol' : 'exitcode'
|
'protocol' : 'exitcode'
|
||||||
@ -173,7 +173,7 @@ glib_tests = {
|
|||||||
'types' : {},
|
'types' : {},
|
||||||
'utf8-performance' : {},
|
'utf8-performance' : {},
|
||||||
'utf8-pointer' : {
|
'utf8-pointer' : {
|
||||||
'c_args' : cc.get_id() == 'gcc' ? ['-Werror=cast-qual'] : [],
|
'c_args' : glib_gnu_cc_compiler ? ['-Werror=cast-qual'] : [],
|
||||||
},
|
},
|
||||||
'utf8-validate' : {},
|
'utf8-validate' : {},
|
||||||
'utf8-misc' : {},
|
'utf8-misc' : {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user