|
|
@ -1,18 +1,15 @@ |
|
|
|
project('test', 'c') |
|
|
|
project('test', 'c') |
|
|
|
|
|
|
|
|
|
|
|
nasm = find_program('nasm', required: false) |
|
|
|
|
|
|
|
yasm = find_program('yasm', required: false) |
|
|
|
|
|
|
|
if not nasm.found() and not yasm.found() |
|
|
|
|
|
|
|
assert(not add_languages('nasm', required: false)) |
|
|
|
|
|
|
|
error('MESON_SKIP_TEST: nasm not available') |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not host_machine.cpu_family().startswith('x86') |
|
|
|
if not host_machine.cpu_family().startswith('x86') |
|
|
|
assert(not add_languages('nasm', required: false)) |
|
|
|
assert(not add_languages('nasm', required: false)) |
|
|
|
error('MESON_SKIP_TEST: nasm only supported for x86 and x86_64') |
|
|
|
error('MESON_SKIP_TEST: nasm only supported for x86 and x86_64') |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
add_languages('nasm') |
|
|
|
if not add_languages('nasm', required: false) |
|
|
|
|
|
|
|
nasm = find_program('nasm', 'yasm', required: false) |
|
|
|
|
|
|
|
assert(not nasm.found()) |
|
|
|
|
|
|
|
error('MESON_SKIP_TEST: nasm not found') |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
config_file = configure_file( |
|
|
|
config_file = configure_file( |
|
|
|
output: 'config.asm', |
|
|
|
output: 'config.asm', |
|
|
|