SANITIZE_ADDRESS =
# For the 'coccicheck' target
-SPATCH_INCLUDE_FLAGS = --all-includes
+SPATCH_INCLUDE_FLAGS = --all-includes $(addprefix -I ,compat ewah refs sha256 trace2 win32 xdiff)
SPATCH_FLAGS =
SPATCH_TEST_FLAGS =
coccinelle_headers += meson.project_source_root() / header
endforeach
+coccinelle_includes = []
+foreach path : ['compat', 'ewah', 'refs', 'sha256', 'trace2', 'win32', 'xdiff']
+ coccinelle_includes += ['-I', meson.project_source_root() / path]
+endforeach
+
patches = [ ]
foreach source : coccinelle_sources
patches += custom_target(
'--all-includes',
'--sp-file', concatenated_rules,
'--patch', meson.project_source_root(),
+ coccinelle_includes,
'@INPUT@',
],
input: meson.project_source_root() / source,