set arch tuple in meson (#1254)
the existing preprocessor logic in C is kept for alternative compilation methods
This commit is contained in:
parent
0ab7fe9311
commit
5c4d15c4d5
|
@ -53,8 +53,12 @@ if get_option('renderer') or host_machine.system() == 'darwin'
|
||||||
lite_cargs += '-DLITE_USE_SDL_RENDERER'
|
lite_cargs += '-DLITE_USE_SDL_RENDERER'
|
||||||
endif
|
endif
|
||||||
if get_option('arch_tuple') != ''
|
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
|
endif
|
||||||
|
lite_cargs += '-DLITE_ARCH_TUPLE="@0@"'.format(arch_tuple)
|
||||||
|
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# Linker Settings
|
# Linker Settings
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
Loading…
Reference in New Issue