From 5c4d15c4d59d308a8e72ea42905f6390becf242a Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 22 Dec 2022 16:24:13 +0100 Subject: [PATCH] set arch tuple in meson (#1254) the existing preprocessor logic in C is kept for alternative compilation methods --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a714d077..954ae6cc 100644 --- a/meson.build +++ b/meson.build @@ -53,8 +53,12 @@ if get_option('renderer') or host_machine.system() == 'darwin' lite_cargs += '-DLITE_USE_SDL_RENDERER' endif if get_option('arch_tuple') != '' - lite_cargs += '-DLITE_ARCH_TUPLE="@0@"'.format(get_option('arch_tuple')) + arch_tuple = get_option('arch_tuple') +else + arch_tuple = '@0@-@1@'.format(target_machine.cpu_family(), target_machine.system()) endif +lite_cargs += '-DLITE_ARCH_TUPLE="@0@"'.format(arch_tuple) + #=============================================================================== # Linker Settings #===============================================================================