From: Vladimír Čunát Date: Thu, 5 Aug 2021 08:10:16 +0000 (+0200) Subject: daemon/lua/meson.build: disable kres_gen_test on cross X-Git-Tag: v5.4.1~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be6f59811ba83a81f88395486ca1ed3705ef1d74;p=thirdparty%2Fknot-resolver.git 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. --- 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 ',