From c1f965bd3c85d11937b3c31d5a418d1e9fcd1ee0 Mon Sep 17 00:00:00 2001 From: Clement Sibille Date: Thu, 30 May 2024 00:19:35 +0900 Subject: Add support for arm-none-eabi cross-compilation --- meson.build | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index ad41bc3..19540d5 100644 --- a/meson.build +++ b/meson.build @@ -11,6 +11,8 @@ lisiblestd_lib = library('lisiblestd', ) lisiblestd_dep = declare_dependency(include_directories: lisiblestd_incdir, link_with: [lisiblestd_lib]) + +if not meson.is_cross_build() test_string = executable('test_string', 'tests/test_runner.c', 'tests/string.c', dependencies: [lisiblestd_dep]) test('test_string', test_string) test_bytes = executable('test_bytes', 'tests/test_runner.c', 'tests/bytes.c', dependencies: [lisiblestd_dep]) @@ -19,3 +21,4 @@ test_memory = executable('test_memory', 'tests/test_runner.c', 'tests/memory.c', test('test_memory', test_memory) test_hash_table = executable('test_hash_table', 'tests/test_runner.c', 'tests/hash_table.c', dependencies: [lisiblestd_dep]) test('test_hash_table', test_hash_table) +endif -- cgit v1.2.3