diff options
| author | Clement Sibille <clements+github@lisible.xyz> | 2024-05-30 00:19:35 +0900 | 
|---|---|---|
| committer | Clement Sibille <clements+github@lisible.xyz> | 2024-05-30 00:19:35 +0900 | 
| commit | c1f965bd3c85d11937b3c31d5a418d1e9fcd1ee0 (patch) | |
| tree | b345457e6552e8ea0fe51c066e40c85a4d821d81 | |
| parent | 3a4e0c47a1015d8b16196521b60dc3b9aaa1a6a2 (diff) | |
Add support for arm-none-eabi cross-compilation
| -rw-r--r-- | cross/arm-none-eabi.txt | 5 | ||||
| -rw-r--r-- | meson.build | 3 | 
2 files changed, 8 insertions, 0 deletions
diff --git a/cross/arm-none-eabi.txt b/cross/arm-none-eabi.txt new file mode 100644 index 0000000..6f0fe79 --- /dev/null +++ b/cross/arm-none-eabi.txt @@ -0,0 +1,5 @@ +[binaries] +c = 'arm-none-eabi-gcc' +ar = 'arm-none-eabi-ar' +strip = 'arm-none-eabi-strip' +ld = 'arm-none-eabi-ld' 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  | 
