From c8fe31bab7f8b39c08fcc138048f39915d11fbe6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 22 Feb 2023 10:54:38 +0100 Subject: [PATCH] ci: add cross build for x86 --- .builds/alpine.yml | 7 +++++++ .builds/x86-linux-gnu.ini | 26 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .builds/x86-linux-gnu.ini diff --git a/.builds/alpine.yml b/.builds/alpine.yml index 622bf8b..be78063 100644 --- a/.builds/alpine.yml +++ b/.builds/alpine.yml @@ -15,18 +15,25 @@ tasks: cd libliftoff CC=gcc meson build-gcc/ --fatal-meson-warnings -Db_coverage=true CC=clang meson build-clang/ --fatal-meson-warnings -Db_sanitize=address,undefined -Db_lundef=false + meson build-x86/ --fatal-meson-warnings --buildtype=debugoptimized --cross-file=.builds/x86-linux-gnu.ini - build-gcc: | cd libliftoff ninja -C build-gcc/ - build-clang: | cd libliftoff ninja -C build-clang/ + - build-x86: | + cd libliftoff + ninja -C build-x86/ - test-gcc: | cd libliftoff ninja -C build-gcc/ test - test-clang: | cd libliftoff ninja -C build-clang/ test + - test-x86: | + cd libliftoff + ninja -C build-x86/ test - coverage: | cd libliftoff ninja -C build-gcc/ coverage-html diff --git a/.builds/x86-linux-gnu.ini b/.builds/x86-linux-gnu.ini new file mode 100644 index 0000000..9e216b8 --- /dev/null +++ b/.builds/x86-linux-gnu.ini @@ -0,0 +1,26 @@ +[binaries] +c = '/usr/bin/gcc' +cpp = '/usr/bin/g++' +ar = '/usr/bin/gcc-ar' +strip = '/usr/bin/strip' +pkgconfig = '/usr/bin/pkgconf' +llvm-config = '/usr/bin/llvm-config32' + +[properties] +c_args = ['-m32'] +c_link_args = ['-m32'] +cpp_args = ['-m32'] +cpp_link_args = ['-m32'] +pkg_config_path = ['/usr/lib32/pkgconfig'] +pkg_config_libdir = ['/usr/lib32/pkgconfig'] + +[paths] +prefix = '/usr' +libdir = 'lib32' +bindir = 'bin' + +[host_machine] +system = 'linux' +cpu_family = 'x86' +cpu = 'i686' +endian = 'little'