From 35b7866e9306baab66c0a286e12cc5c55b53d434 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 30 Jun 2023 11:36:45 +0200 Subject: [PATCH] toolchain: run all tests with the cross toolchain some of them should be fixed now with newer binutils --- toolchain/meson/meson_options.txt | 1 - toolchain/meson/tests/meson.build | 14 +++++--------- toolchain/test.sh | 4 ++-- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/toolchain/meson/meson_options.txt b/toolchain/meson/meson_options.txt index 269a7b4..e69de29 100644 --- a/toolchain/meson/meson_options.txt +++ b/toolchain/meson/meson_options.txt @@ -1 +0,0 @@ -option('cross', type : 'boolean', value : false) \ No newline at end of file diff --git a/toolchain/meson/tests/meson.build b/toolchain/meson/tests/meson.build index f6076f0..3221ba9 100644 --- a/toolchain/meson/tests/meson.build +++ b/toolchain/meson/tests/meson.build @@ -3,9 +3,8 @@ test('snprintf_redef', executable('snprintf_redef', 'snprintf_redef.c')) test('quick_exit', executable('quick_exit', 'quick_exit.cpp')) test('exception_handling', executable('exception_handling', 'exception_handling.cpp')) test('printf_format', executable('printf_format', 'printf_format.c')) -if not get_option('cross') - test('pch', executable('pch', 'pch.cpp', cpp_pch : 'pch/pch.hpp')) -endif +test('pch', executable('pch', 'pch.cpp', cpp_pch : 'pch/pch.hpp')) + openmp = dependency('openmp') env = environment() @@ -17,9 +16,8 @@ windres_res = import('windows').compile_resources('windres.rc') windres = executable('windres', 'windres.c', windres_res) test('windres', windres) -if not get_option('cross') - test('call_once', executable('call_once', 'call_once.cpp')) -endif +test('call_once', executable('call_once', 'call_once.cpp')) + test('undef_memrchr', executable('undef_memrchr', 'undef_memrchr.c', c_args: ['-O3'])) test('stpcpy_fortify', executable('stpcpy_fortify', 'stpcpy_fortify.c', c_args: ['-O3', '-D_FORTIFY_SOURCE=2'])) @@ -55,6 +53,4 @@ if compiler.get_id() == 'clang' and compiler.get_linker_id() == 'ld.lld' test('guard_cf_nochecks-invalid_icall_nocf', guard_cf_nochecks, args : ['invalid_icall_nocf']) endif -if not get_option('cross') - subdir('def-undec-stdcall') -endif \ No newline at end of file +subdir('def-undec-stdcall') diff --git a/toolchain/test.sh b/toolchain/test.sh index 5956ec5..91156d9 100644 --- a/toolchain/test.sh +++ b/toolchain/test.sh @@ -10,13 +10,13 @@ cd .. if [[ "$MSYSTEM" == "MSYS" ]]; then cd meson - meson setup -Dcross=true --cross-file i686-w64-mingw32.txt _build_cross_32 --werror + meson setup --cross-file i686-w64-mingw32.txt _build_cross_32 --werror meson compile -C _build meson test -C _build cd .. cd meson - meson setup -Dcross=true --cross-file x86_64-w64-mingw32.txt _build_cross_64 --werror + meson setup --cross-file x86_64-w64-mingw32.txt _build_cross_64 --werror meson compile -C _build meson test -C _build cd ..