From be6f59811ba83a81f88395486ca1ed3705ef1d74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 5 Aug 2021 10:10:16 +0200 Subject: [PATCH] daemon/lua/meson.build: disable kres_gen_test on cross I considered switching it to our usual 3-option combo, but that way didn't really seem useful. --- daemon/lua/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/lua/meson.build b/daemon/lua/meson.build index 565ccfd1c..476d107ea 100644 --- a/daemon/lua/meson.build +++ b/daemon/lua/meson.build @@ -56,8 +56,9 @@ run_target( # run manually to re-generate kres-gen.lua # A simple config test: check that sizes of some structures match # in C and pre-generated lua bindings. # The point is that regeneration is quite expensive in time and dependencies, -# but this basic sanity check could be ran always. -if get_option('kres_gen_test') +# but this basic sanity check could be ran always, except for cross compilation, +# as we *run* luajit to find out the real sizes. +if get_option('kres_gen_test') and not meson.is_cross_build() types_to_check = { 'time_t' : '#include ', 'struct timeval' : '#include ', -- 2.47.2