checkasm: Pass HAVE_C11_GENERIC to checkasm as -DCHECKASM_HAVE_GENERIC=1/0

For this to have an effect, it requires using a newer version of
the wrapped checkasm subproject; including checkasm commit
be05a7972e47c658a7c5c186294d27caa5735db2 or newer.
This commit is contained in:
Martin Storsjö
2026-01-07 16:22:18 +02:00
parent b2f9c10670
commit 574e7f4727
+6 -1
View File
@@ -38,6 +38,10 @@ checkasm_dependency = dependency('checkasm',
if is_asm_enabled and checkasm_dependency.found()
checkasm_args = [
'-DCHECKASM_HAVE_GENERIC=@0@'.format(cdata.get('HAVE_C11_GENERIC'))
]
checkasm_sources = files(
'checkasm/checkasm.c',
'checkasm/msac.c',
@@ -62,7 +66,7 @@ if is_asm_enabled and checkasm_dependency.found()
checkasm_tmpl_sources,
include_directories: dav1d_inc_dirs,
dependencies : [stdatomic_dependencies, checkasm_dependency],
c_args: ['-DBITDEPTH=@0@'.format(bitdepth)],
c_args: ['-DBITDEPTH=@0@'.format(bitdepth)] + checkasm_args,
install: false,
build_by_default: false,
)
@@ -83,6 +87,7 @@ if is_asm_enabled and checkasm_dependency.found()
libm_dependency,
checkasm_dependency,
],
c_args: checkasm_args,
)
test('checkasm', checkasm, suite: 'checkasm', timeout: 180)