mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
tests: Only run --external-data test on GNU ld/objcopy
Other GCC-like implementations of ld/objcopy (like LLVM) don’t yet support the right command line arguments, so can’t compile the test. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/1709
This commit is contained in:
parent
ea8e6502d4
commit
b11f323ee5
@ -566,9 +566,12 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
|
|||||||
digit_test_resources_h,
|
digit_test_resources_h,
|
||||||
]
|
]
|
||||||
|
|
||||||
# Create object file containing resource data
|
# Create object file containing resource data for testing the --external-data
|
||||||
# for testing the external data option
|
# option. Currently only GNU ld and GNU objcopy support the right options.
|
||||||
if build_machine.system() == 'linux'
|
# Support for --add-symbol was added to LLVM objcopy in 2019
|
||||||
|
# (https://reviews.llvm.org/D58234). FIXME: This test could be enabled for
|
||||||
|
# LLVM once that support is in a stable release.
|
||||||
|
if build_machine.system() == 'linux' and cc.get_id() == 'gcc'
|
||||||
test_gresource_binary = custom_target('test5.gresource',
|
test_gresource_binary = custom_target('test5.gresource',
|
||||||
input : 'test5.gresource.xml',
|
input : 'test5.gresource.xml',
|
||||||
output : 'test5.gresource',
|
output : 'test5.gresource',
|
||||||
|
Loading…
Reference in New Issue
Block a user