Skip to content
Snippets Groups Projects
Commit 78f654ed authored by Alexander Richardson's avatar Alexander Richardson
Browse files

tests: allow cross-compiling the tests


I am trying to cross-compile from macOS for FreeBSD and this is currently
failing since the tests attempt to build a native binary that links
against the wayland-client and wayland-server libraries for the FreeBSD
system. I believe we should be building them for the target system and
not the current host (especially since there is no way to build
wayland-client and wayland-server for macOS, but I do want to check that
the files build correctly for FreeBSD).

Signed-off-by: default avatarAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Reviewed-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
parent 80e97bd0
No related branches found
No related tags found
1 merge request!119tests: allow cross-compiling the tests
......@@ -21,7 +21,7 @@ endforeach
# Check buildability
add_languages('c', 'cpp', native: true)
add_languages('c', 'cpp', native: false)
replace = find_program('replace.py')
foreach protocol_file : protocol_files
......@@ -110,7 +110,6 @@ foreach protocol_file : protocol_files
'-Wall',
'-Werror' ],
install: false,
native: true,
)
test(test_name, pedantic_test_executable)
......@@ -138,7 +137,6 @@ foreach protocol_file : protocol_files
'-Werror',
],
install: false,
native: true,
)
test(test_name, cxx_test_executable)
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment